index.d.mts 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. import * as vue from 'vue';
  2. import { ComponentPropsOptions, ExtractPropTypes } from 'vue';
  3. interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
  4. filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): [yes: Partial<Pick<T, U>>, no: Omit<T, U>];
  5. }
  6. declare const VDivider: {
  7. new (...args: any[]): {
  8. $: vue.ComponentInternalInstance;
  9. $data: {};
  10. $props: {
  11. inset?: boolean | undefined;
  12. style?: vue.StyleValue | undefined;
  13. vertical?: boolean | undefined;
  14. length?: string | number | undefined;
  15. key?: string | number | symbol | undefined;
  16. color?: string | undefined;
  17. class?: any;
  18. $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
  19. default?: (() => vue.VNodeChild) | undefined;
  20. };
  21. ref?: vue.VNodeRef | undefined;
  22. ref_for?: boolean | undefined;
  23. ref_key?: string | undefined;
  24. theme?: string | undefined;
  25. "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
  26. 'v-slots'?: {
  27. default?: false | (() => vue.VNodeChild) | undefined;
  28. } | undefined;
  29. onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  30. [key: string]: any;
  31. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  32. [key: string]: any;
  33. }>) => void)[] | undefined;
  34. onVnodeMounted?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  35. [key: string]: any;
  36. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  37. [key: string]: any;
  38. }>) => void)[] | undefined;
  39. onVnodeBeforeUpdate?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  40. [key: string]: any;
  41. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  42. [key: string]: any;
  43. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  44. [key: string]: any;
  45. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  46. [key: string]: any;
  47. }>) => void)[] | undefined;
  48. onVnodeUpdated?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  49. [key: string]: any;
  50. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  51. [key: string]: any;
  52. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  53. [key: string]: any;
  54. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  55. [key: string]: any;
  56. }>) => void)[] | undefined;
  57. onVnodeBeforeUnmount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  58. [key: string]: any;
  59. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  60. [key: string]: any;
  61. }>) => void)[] | undefined;
  62. onVnodeUnmounted?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  63. [key: string]: any;
  64. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  65. [key: string]: any;
  66. }>) => void)[] | undefined;
  67. thickness?: string | number | undefined;
  68. };
  69. $attrs: {
  70. [x: string]: unknown;
  71. };
  72. $refs: {
  73. [x: string]: unknown;
  74. };
  75. $slots: Readonly<{
  76. default?: (() => vue.VNode<vue.RendererNode, vue.RendererElement, {
  77. [key: string]: any;
  78. }>[]) | undefined;
  79. }>;
  80. $root: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
  81. $parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
  82. $emit: (event: string, ...args: any[]) => void;
  83. $el: any;
  84. $options: vue.ComponentOptionsBase<{
  85. inset: boolean;
  86. style: vue.StyleValue;
  87. vertical: boolean;
  88. } & {
  89. length?: string | number | undefined;
  90. color?: string | undefined;
  91. class?: any;
  92. theme?: string | undefined;
  93. thickness?: string | number | undefined;
  94. } & {
  95. $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
  96. default?: (() => vue.VNodeChild) | undefined;
  97. };
  98. 'v-slots'?: {
  99. default?: false | (() => vue.VNodeChild) | undefined;
  100. } | undefined;
  101. } & {
  102. "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
  103. }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
  104. inset: boolean;
  105. style: vue.StyleValue;
  106. vertical: boolean;
  107. }, {}, string, vue.SlotsType<Partial<{
  108. default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
  109. [key: string]: any;
  110. }>[];
  111. }>>> & {
  112. beforeCreate?: ((() => void) | (() => void)[]) | undefined;
  113. created?: ((() => void) | (() => void)[]) | undefined;
  114. beforeMount?: ((() => void) | (() => void)[]) | undefined;
  115. mounted?: ((() => void) | (() => void)[]) | undefined;
  116. beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
  117. updated?: ((() => void) | (() => void)[]) | undefined;
  118. activated?: ((() => void) | (() => void)[]) | undefined;
  119. deactivated?: ((() => void) | (() => void)[]) | undefined;
  120. beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
  121. beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
  122. destroyed?: ((() => void) | (() => void)[]) | undefined;
  123. unmounted?: ((() => void) | (() => void)[]) | undefined;
  124. renderTracked?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
  125. renderTriggered?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
  126. errorCaptured?: (((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
  127. };
  128. $forceUpdate: () => void;
  129. $nextTick: typeof vue.nextTick;
  130. $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: vue.WatchOptions<boolean> | undefined): vue.WatchStopHandle;
  131. } & {
  132. inset: boolean;
  133. style: vue.StyleValue;
  134. vertical: boolean;
  135. } & {
  136. length?: string | number | undefined;
  137. color?: string | undefined;
  138. class?: any;
  139. theme?: string | undefined;
  140. thickness?: string | number | undefined;
  141. } & {
  142. $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
  143. default?: (() => vue.VNodeChild) | undefined;
  144. };
  145. 'v-slots'?: {
  146. default?: false | (() => vue.VNodeChild) | undefined;
  147. } | undefined;
  148. } & {
  149. "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
  150. } & vue.ShallowUnwrapRef<{}> & {} & vue.ComponentCustomProperties & {};
  151. __isFragment?: undefined;
  152. __isTeleport?: undefined;
  153. __isSuspense?: undefined;
  154. } & vue.ComponentOptionsBase<{
  155. inset: boolean;
  156. style: vue.StyleValue;
  157. vertical: boolean;
  158. } & {
  159. length?: string | number | undefined;
  160. color?: string | undefined;
  161. class?: any;
  162. theme?: string | undefined;
  163. thickness?: string | number | undefined;
  164. } & {
  165. $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
  166. default?: (() => vue.VNodeChild) | undefined;
  167. };
  168. 'v-slots'?: {
  169. default?: false | (() => vue.VNodeChild) | undefined;
  170. } | undefined;
  171. } & {
  172. "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
  173. }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
  174. inset: boolean;
  175. style: vue.StyleValue;
  176. vertical: boolean;
  177. }, {}, string, vue.SlotsType<Partial<{
  178. default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
  179. [key: string]: any;
  180. }>[];
  181. }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
  182. theme: StringConstructor;
  183. class: vue.PropType<any>;
  184. style: {
  185. type: vue.PropType<vue.StyleValue>;
  186. default: null;
  187. };
  188. color: StringConstructor;
  189. inset: BooleanConstructor;
  190. length: (StringConstructor | NumberConstructor)[];
  191. thickness: (StringConstructor | NumberConstructor)[];
  192. vertical: BooleanConstructor;
  193. }, vue.ExtractPropTypes<{
  194. theme: StringConstructor;
  195. class: vue.PropType<any>;
  196. style: {
  197. type: vue.PropType<vue.StyleValue>;
  198. default: null;
  199. };
  200. color: StringConstructor;
  201. inset: BooleanConstructor;
  202. length: (StringConstructor | NumberConstructor)[];
  203. thickness: (StringConstructor | NumberConstructor)[];
  204. vertical: BooleanConstructor;
  205. }>>;
  206. type VDivider = InstanceType<typeof VDivider>;
  207. export { VDivider };