index.d.mts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  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 VHover: {
  7. new (...args: any[]): {
  8. $: vue.ComponentInternalInstance;
  9. $data: {};
  10. $props: {
  11. disabled?: boolean | undefined;
  12. modelValue?: boolean | undefined;
  13. key?: string | number | symbol | undefined;
  14. style?: unknown;
  15. class?: unknown;
  16. $children?: vue.VNodeChild | {
  17. default?: ((arg: {
  18. isHovering: boolean | undefined;
  19. props: Record<string, unknown>;
  20. }) => vue.VNodeChild) | undefined;
  21. } | ((arg: {
  22. isHovering: boolean | undefined;
  23. props: Record<string, unknown>;
  24. }) => vue.VNodeChild);
  25. ref?: vue.VNodeRef | undefined;
  26. ref_for?: boolean | undefined;
  27. ref_key?: string | undefined;
  28. "v-slot:default"?: false | ((arg: {
  29. isHovering: boolean | undefined;
  30. props: Record<string, unknown>;
  31. }) => vue.VNodeChild) | undefined;
  32. 'v-slots'?: {
  33. default?: false | ((arg: {
  34. isHovering: boolean | undefined;
  35. props: Record<string, unknown>;
  36. }) => vue.VNodeChild) | undefined;
  37. } | undefined;
  38. onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  39. [key: string]: any;
  40. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  41. [key: string]: any;
  42. }>) => void)[] | undefined;
  43. onVnodeMounted?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  44. [key: string]: any;
  45. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  46. [key: string]: any;
  47. }>) => void)[] | undefined;
  48. onVnodeBeforeUpdate?: ((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. onVnodeUpdated?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  58. [key: string]: any;
  59. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  60. [key: string]: any;
  61. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  62. [key: string]: any;
  63. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  64. [key: string]: any;
  65. }>) => void)[] | undefined;
  66. onVnodeBeforeUnmount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  67. [key: string]: any;
  68. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  69. [key: string]: any;
  70. }>) => void)[] | undefined;
  71. onVnodeUnmounted?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  72. [key: string]: any;
  73. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  74. [key: string]: any;
  75. }>) => void)[] | undefined;
  76. "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
  77. closeDelay?: string | number | undefined;
  78. openDelay?: string | number | undefined;
  79. };
  80. $attrs: {
  81. [x: string]: unknown;
  82. };
  83. $refs: {
  84. [x: string]: unknown;
  85. };
  86. $slots: Readonly<{
  87. default?: ((arg: {
  88. isHovering: boolean | undefined;
  89. props: Record<string, unknown>;
  90. }) => vue.VNode<vue.RendererNode, vue.RendererElement, {
  91. [key: string]: any;
  92. }>[]) | undefined;
  93. }>;
  94. $root: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
  95. $parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
  96. $emit: (event: "update:modelValue", value: boolean) => void;
  97. $el: any;
  98. $options: vue.ComponentOptionsBase<{
  99. disabled: boolean;
  100. } & {
  101. modelValue?: boolean | undefined;
  102. closeDelay?: string | number | undefined;
  103. openDelay?: string | number | undefined;
  104. } & {
  105. $children?: vue.VNodeChild | {
  106. default?: ((arg: {
  107. isHovering: boolean | undefined;
  108. props: Record<string, unknown>;
  109. }) => vue.VNodeChild) | undefined;
  110. } | ((arg: {
  111. isHovering: boolean | undefined;
  112. props: Record<string, unknown>;
  113. }) => vue.VNodeChild);
  114. 'v-slots'?: {
  115. default?: false | ((arg: {
  116. isHovering: boolean | undefined;
  117. props: Record<string, unknown>;
  118. }) => vue.VNodeChild) | undefined;
  119. } | undefined;
  120. } & {
  121. "v-slot:default"?: false | ((arg: {
  122. isHovering: boolean | undefined;
  123. props: Record<string, unknown>;
  124. }) => vue.VNodeChild) | undefined;
  125. } & {
  126. "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
  127. }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
  128. [key: string]: any;
  129. }>[] | undefined, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
  130. 'update:modelValue': (value: boolean) => true;
  131. }, string, {
  132. disabled: boolean;
  133. modelValue: boolean;
  134. }, {}, string, vue.SlotsType<Partial<{
  135. default: (arg: {
  136. isHovering: boolean | undefined;
  137. props: Record<string, unknown>;
  138. }) => vue.VNode<vue.RendererNode, vue.RendererElement, {
  139. [key: string]: any;
  140. }>[];
  141. }>>> & {
  142. beforeCreate?: ((() => void) | (() => void)[]) | undefined;
  143. created?: ((() => void) | (() => void)[]) | undefined;
  144. beforeMount?: ((() => void) | (() => void)[]) | undefined;
  145. mounted?: ((() => void) | (() => void)[]) | undefined;
  146. beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
  147. updated?: ((() => void) | (() => void)[]) | undefined;
  148. activated?: ((() => void) | (() => void)[]) | undefined;
  149. deactivated?: ((() => void) | (() => void)[]) | undefined;
  150. beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
  151. beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
  152. destroyed?: ((() => void) | (() => void)[]) | undefined;
  153. unmounted?: ((() => void) | (() => void)[]) | undefined;
  154. renderTracked?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
  155. renderTriggered?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
  156. 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;
  157. };
  158. $forceUpdate: () => void;
  159. $nextTick: typeof vue.nextTick;
  160. $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;
  161. } & {
  162. disabled: boolean;
  163. } & {
  164. modelValue?: boolean | undefined;
  165. closeDelay?: string | number | undefined;
  166. openDelay?: string | number | undefined;
  167. } & {
  168. $children?: vue.VNodeChild | {
  169. default?: ((arg: {
  170. isHovering: boolean | undefined;
  171. props: Record<string, unknown>;
  172. }) => vue.VNodeChild) | undefined;
  173. } | ((arg: {
  174. isHovering: boolean | undefined;
  175. props: Record<string, unknown>;
  176. }) => vue.VNodeChild);
  177. 'v-slots'?: {
  178. default?: false | ((arg: {
  179. isHovering: boolean | undefined;
  180. props: Record<string, unknown>;
  181. }) => vue.VNodeChild) | undefined;
  182. } | undefined;
  183. } & {
  184. "v-slot:default"?: false | ((arg: {
  185. isHovering: boolean | undefined;
  186. props: Record<string, unknown>;
  187. }) => vue.VNodeChild) | undefined;
  188. } & {
  189. "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
  190. } & vue.ShallowUnwrapRef<() => vue.VNode<vue.RendererNode, vue.RendererElement, {
  191. [key: string]: any;
  192. }>[] | undefined> & {} & vue.ComponentCustomProperties & {};
  193. __isFragment?: undefined;
  194. __isTeleport?: undefined;
  195. __isSuspense?: undefined;
  196. } & vue.ComponentOptionsBase<{
  197. disabled: boolean;
  198. } & {
  199. modelValue?: boolean | undefined;
  200. closeDelay?: string | number | undefined;
  201. openDelay?: string | number | undefined;
  202. } & {
  203. $children?: vue.VNodeChild | {
  204. default?: ((arg: {
  205. isHovering: boolean | undefined;
  206. props: Record<string, unknown>;
  207. }) => vue.VNodeChild) | undefined;
  208. } | ((arg: {
  209. isHovering: boolean | undefined;
  210. props: Record<string, unknown>;
  211. }) => vue.VNodeChild);
  212. 'v-slots'?: {
  213. default?: false | ((arg: {
  214. isHovering: boolean | undefined;
  215. props: Record<string, unknown>;
  216. }) => vue.VNodeChild) | undefined;
  217. } | undefined;
  218. } & {
  219. "v-slot:default"?: false | ((arg: {
  220. isHovering: boolean | undefined;
  221. props: Record<string, unknown>;
  222. }) => vue.VNodeChild) | undefined;
  223. } & {
  224. "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
  225. }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
  226. [key: string]: any;
  227. }>[] | undefined, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
  228. 'update:modelValue': (value: boolean) => true;
  229. }, string, {
  230. disabled: boolean;
  231. modelValue: boolean;
  232. }, {}, string, vue.SlotsType<Partial<{
  233. default: (arg: {
  234. isHovering: boolean | undefined;
  235. props: Record<string, unknown>;
  236. }) => vue.VNode<vue.RendererNode, vue.RendererElement, {
  237. [key: string]: any;
  238. }>[];
  239. }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
  240. closeDelay: (StringConstructor | NumberConstructor)[];
  241. openDelay: (StringConstructor | NumberConstructor)[];
  242. disabled: BooleanConstructor;
  243. modelValue: {
  244. type: BooleanConstructor;
  245. default: undefined;
  246. };
  247. }, vue.ExtractPropTypes<{
  248. closeDelay: (StringConstructor | NumberConstructor)[];
  249. openDelay: (StringConstructor | NumberConstructor)[];
  250. disabled: BooleanConstructor;
  251. modelValue: {
  252. type: BooleanConstructor;
  253. default: undefined;
  254. };
  255. }>>;
  256. type VHover = InstanceType<typeof VHover>;
  257. export { VHover };