import type { App, AppContext } from 'vue'; import type { DrawerConfig, DrawerUpdateConfig } from './interface'; import { SDOptions } from '../_utils/types'; import _Drawer from './drawer.vue'; declare const Drawer: { new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins; default: string; validator: (value: any) => boolean; }; title: StringConstructor; titleEllipsisTooltip: { type: import("vue").PropType; default: boolean; }; mask: { type: BooleanConstructor; default: boolean; }; maskClosable: { type: BooleanConstructor; default: boolean; }; closable: { type: BooleanConstructor; default: boolean; }; okText: StringConstructor; cancelText: StringConstructor; okLoading: { type: BooleanConstructor; default: boolean; }; okButtonProps: { type: import("vue").PropType; }; cancelButtonProps: { type: import("vue").PropType; }; unmountOnClose: BooleanConstructor; width: { type: (StringConstructor | NumberConstructor)[]; default: number; }; height: { type: (StringConstructor | NumberConstructor)[]; default: number; }; popupContainer: { type: import("vue").PropType; default: string; }; drawerStyle: { type: import("vue").PropType; }; bodyClass: { type: import("vue").PropType; }; bodyStyle: { type: import("vue").PropType; }; onBeforeOk: { type: import("vue").PropType<(done: (closed: boolean) => void) => void | boolean | Promise>; }; onBeforeCancel: { type: import("vue").PropType<() => boolean>; }; escToClose: { type: BooleanConstructor; default: boolean; }; renderToBody: { type: BooleanConstructor; default: boolean; }; header: { type: BooleanConstructor; default: boolean; }; footer: { type: BooleanConstructor; default: boolean; }; hideCancel: { type: BooleanConstructor; default: boolean; }; }>> & Readonly<{ onOpen?: (() => any) | undefined; onCancel?: ((_e: Event) => any) | undefined; onClose?: (() => any) | undefined; "onUpdate:visible"?: ((_visible: boolean) => any) | undefined; onOk?: ((_e: Event) => any) | undefined; onBeforeOpen?: (() => any) | undefined; onBeforeClose?: (() => any) | undefined; }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { open: () => any; cancel: (_e: Event) => any; close: () => any; "update:visible": (_visible: boolean) => any; ok: (_e: Event) => any; beforeOpen: () => any; beforeClose: () => any; }, import("vue").PublicProps, { visible: boolean; footer: boolean; header: boolean; mask: boolean; popupContainer: string | HTMLElement; unmountOnClose: boolean; renderToBody: boolean; escToClose: boolean; height: string | number; defaultVisible: boolean; closable: boolean; width: string | number; placement: "left" | "right" | "bottom" | "top"; titleEllipsisTooltip: boolean | import("../index.ts").EllipsisTooltipProps; maskClosable: boolean; okLoading: boolean; hideCancel: boolean; }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly; default: string; validator: (value: any) => boolean; }; title: StringConstructor; titleEllipsisTooltip: { type: import("vue").PropType; default: boolean; }; mask: { type: BooleanConstructor; default: boolean; }; maskClosable: { type: BooleanConstructor; default: boolean; }; closable: { type: BooleanConstructor; default: boolean; }; okText: StringConstructor; cancelText: StringConstructor; okLoading: { type: BooleanConstructor; default: boolean; }; okButtonProps: { type: import("vue").PropType; }; cancelButtonProps: { type: import("vue").PropType; }; unmountOnClose: BooleanConstructor; width: { type: (StringConstructor | NumberConstructor)[]; default: number; }; height: { type: (StringConstructor | NumberConstructor)[]; default: number; }; popupContainer: { type: import("vue").PropType; default: string; }; drawerStyle: { type: import("vue").PropType; }; bodyClass: { type: import("vue").PropType; }; bodyStyle: { type: import("vue").PropType; }; onBeforeOk: { type: import("vue").PropType<(done: (closed: boolean) => void) => void | boolean | Promise>; }; onBeforeCancel: { type: import("vue").PropType<() => boolean>; }; escToClose: { type: BooleanConstructor; default: boolean; }; renderToBody: { type: BooleanConstructor; default: boolean; }; header: { type: BooleanConstructor; default: boolean; }; footer: { type: BooleanConstructor; default: boolean; }; hideCancel: { type: BooleanConstructor; default: boolean; }; }>> & Readonly<{ onOpen?: (() => any) | undefined; onCancel?: ((_e: Event) => any) | undefined; onClose?: (() => any) | undefined; "onUpdate:visible"?: ((_visible: boolean) => any) | undefined; onOk?: ((_e: Event) => any) | undefined; onBeforeOpen?: (() => any) | undefined; onBeforeClose?: (() => any) | undefined; }>, {}, {}, {}, {}, { visible: boolean; footer: boolean; header: boolean; mask: boolean; popupContainer: string | HTMLElement; unmountOnClose: boolean; renderToBody: boolean; escToClose: boolean; height: string | number; defaultVisible: boolean; closable: boolean; width: string | number; placement: "left" | "right" | "bottom" | "top"; titleEllipsisTooltip: boolean | import("../index.ts").EllipsisTooltipProps; maskClosable: boolean; okLoading: boolean; hideCancel: boolean; }>; __isFragment?: never; __isTeleport?: never; __isSuspense?: never; } & import("vue").ComponentOptionsBase; default: string; validator: (value: any) => boolean; }; title: StringConstructor; titleEllipsisTooltip: { type: import("vue").PropType; default: boolean; }; mask: { type: BooleanConstructor; default: boolean; }; maskClosable: { type: BooleanConstructor; default: boolean; }; closable: { type: BooleanConstructor; default: boolean; }; okText: StringConstructor; cancelText: StringConstructor; okLoading: { type: BooleanConstructor; default: boolean; }; okButtonProps: { type: import("vue").PropType; }; cancelButtonProps: { type: import("vue").PropType; }; unmountOnClose: BooleanConstructor; width: { type: (StringConstructor | NumberConstructor)[]; default: number; }; height: { type: (StringConstructor | NumberConstructor)[]; default: number; }; popupContainer: { type: import("vue").PropType; default: string; }; drawerStyle: { type: import("vue").PropType; }; bodyClass: { type: import("vue").PropType; }; bodyStyle: { type: import("vue").PropType; }; onBeforeOk: { type: import("vue").PropType<(done: (closed: boolean) => void) => void | boolean | Promise>; }; onBeforeCancel: { type: import("vue").PropType<() => boolean>; }; escToClose: { type: BooleanConstructor; default: boolean; }; renderToBody: { type: BooleanConstructor; default: boolean; }; header: { type: BooleanConstructor; default: boolean; }; footer: { type: BooleanConstructor; default: boolean; }; hideCancel: { type: BooleanConstructor; default: boolean; }; }>> & Readonly<{ onOpen?: (() => any) | undefined; onCancel?: ((_e: Event) => any) | undefined; onClose?: (() => any) | undefined; "onUpdate:visible"?: ((_visible: boolean) => any) | undefined; onOk?: ((_e: Event) => any) | undefined; onBeforeOpen?: (() => any) | undefined; onBeforeClose?: (() => any) | undefined; }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { open: () => any; cancel: (_e: Event) => any; close: () => any; "update:visible": (_visible: boolean) => any; ok: (_e: Event) => any; beforeOpen: () => any; beforeClose: () => any; }, string, { visible: boolean; footer: boolean; header: boolean; mask: boolean; popupContainer: string | HTMLElement; unmountOnClose: boolean; renderToBody: boolean; escToClose: boolean; height: string | number; defaultVisible: boolean; closable: boolean; width: string | number; placement: "left" | "right" | "bottom" | "top"; titleEllipsisTooltip: boolean | import("../index.ts").EllipsisTooltipProps; maskClosable: boolean; okLoading: boolean; hideCancel: boolean; }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => { $slots: { header?: (props: {}) => any; } & { title?: (props: {}) => any; } & { default?: (props: {}) => any; } & { footer?: (props: {}) => any; }; }) & { open: (config: DrawerConfig, appContext?: AppContext) => { close: () => void; update: (config: DrawerUpdateConfig) => void; }; install: (app: App, options?: SDOptions) => void; _context: AppContext | null; }; export type { DrawerMethod, DrawerConfig, DrawerReturn } from './interface'; export type DrawerInstance = InstanceType; export type DrawerProps = InstanceType['$props']; export default Drawer;