import { SFCWithInstall } from '@chenms-zj/utils/with-install'; import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue'; import { TooltipPlacement } from './src/tooltip'; declare const Tooltip: SFCWithInstall<{ new (...args: any[]): CreateComponentPublicInstanceWithMixins; readonly default: "top"; }; readonly trigger: { readonly type: PropType<"hover" | "click" | "focus">; readonly default: "hover"; }; readonly disabled: { readonly type: BooleanConstructor; readonly default: false; }; readonly showDelay: { readonly type: NumberConstructor; readonly default: 0; }; readonly hideDelay: { readonly type: NumberConstructor; readonly default: 200; }; readonly showArrow: { readonly type: BooleanConstructor; readonly default: true; }; readonly tooltipClass: { readonly type: StringConstructor; readonly default: ""; }; readonly transition: { readonly type: StringConstructor; readonly default: "cms-tooltip-fade"; }; readonly manual: { readonly type: BooleanConstructor; readonly default: false; }; readonly modelValue: { readonly type: BooleanConstructor; readonly default: undefined; }; readonly effect: { readonly type: PropType<"dark" | "light">; readonly default: "dark"; }; }>> & Readonly<{ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined; "onBefore-show"?: (() => any) | undefined; "onBefore-hide"?: (() => any) | undefined; onShow?: (() => any) | undefined; onHide?: (() => any) | undefined; }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:modelValue": (value: boolean) => void; "before-show": () => void; "before-hide": () => void; show: () => void; hide: () => void; }, PublicProps, { readonly disabled: boolean; readonly transition: string; readonly modelValue: boolean; readonly trigger: "click" | "focus" | "hover"; readonly content: string; readonly placement: TooltipPlacement; readonly showDelay: number; readonly hideDelay: number; readonly showArrow: boolean; readonly tooltipClass: string; readonly manual: boolean; readonly effect: "dark" | "light"; }, true, {}, {}, GlobalComponents, GlobalDirectives, string, { triggerRef: HTMLDivElement; popperRef: HTMLDivElement; }, HTMLDivElement, ComponentProvideOptions, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly< ExtractPropTypes<{ readonly content: { readonly type: StringConstructor; readonly default: ""; }; readonly placement: { readonly type: PropType; readonly default: "top"; }; readonly trigger: { readonly type: PropType<"hover" | "click" | "focus">; readonly default: "hover"; }; readonly disabled: { readonly type: BooleanConstructor; readonly default: false; }; readonly showDelay: { readonly type: NumberConstructor; readonly default: 0; }; readonly hideDelay: { readonly type: NumberConstructor; readonly default: 200; }; readonly showArrow: { readonly type: BooleanConstructor; readonly default: true; }; readonly tooltipClass: { readonly type: StringConstructor; readonly default: ""; }; readonly transition: { readonly type: StringConstructor; readonly default: "cms-tooltip-fade"; }; readonly manual: { readonly type: BooleanConstructor; readonly default: false; }; readonly modelValue: { readonly type: BooleanConstructor; readonly default: undefined; }; readonly effect: { readonly type: PropType<"dark" | "light">; readonly default: "dark"; }; }>> & Readonly<{ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined; "onBefore-show"?: (() => any) | undefined; "onBefore-hide"?: (() => any) | undefined; onShow?: (() => any) | undefined; onHide?: (() => any) | undefined; }>, {}, {}, {}, {}, { readonly disabled: boolean; readonly transition: string; readonly modelValue: boolean; readonly trigger: "click" | "focus" | "hover"; readonly content: string; readonly placement: TooltipPlacement; readonly showDelay: number; readonly hideDelay: number; readonly showArrow: boolean; readonly tooltipClass: string; readonly manual: boolean; readonly effect: "dark" | "light"; }>; __isFragment?: never; __isTeleport?: never; __isSuspense?: never; } & ComponentOptionsBase; readonly default: "top"; }; readonly trigger: { readonly type: PropType<"hover" | "click" | "focus">; readonly default: "hover"; }; readonly disabled: { readonly type: BooleanConstructor; readonly default: false; }; readonly showDelay: { readonly type: NumberConstructor; readonly default: 0; }; readonly hideDelay: { readonly type: NumberConstructor; readonly default: 200; }; readonly showArrow: { readonly type: BooleanConstructor; readonly default: true; }; readonly tooltipClass: { readonly type: StringConstructor; readonly default: ""; }; readonly transition: { readonly type: StringConstructor; readonly default: "cms-tooltip-fade"; }; readonly manual: { readonly type: BooleanConstructor; readonly default: false; }; readonly modelValue: { readonly type: BooleanConstructor; readonly default: undefined; }; readonly effect: { readonly type: PropType<"dark" | "light">; readonly default: "dark"; }; }>> & Readonly<{ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined; "onBefore-show"?: (() => any) | undefined; "onBefore-hide"?: (() => any) | undefined; onShow?: (() => any) | undefined; onHide?: (() => any) | undefined; }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:modelValue": (value: boolean) => void; "before-show": () => void; "before-hide": () => void; show: () => void; hide: () => void; }, string, { readonly disabled: boolean; readonly transition: string; readonly modelValue: boolean; readonly trigger: "click" | "focus" | "hover"; readonly content: string; readonly placement: TooltipPlacement; readonly showDelay: number; readonly hideDelay: number; readonly showArrow: boolean; readonly tooltipClass: string; readonly manual: boolean; readonly effect: "dark" | "light"; }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => { $slots: { default?(_: {}): any; content?(_: {}): any; }; })>; export default Tooltip; export * from './src/tooltip'; declare module 'vue' { interface GlobalComponents { 'cms-tooltip': typeof Tooltip; } }