import type { AppContext, ExtractPropTypes, VNode } from 'vue'; import type { Mutable } from 'element-plus/es/utils'; import type MessageConstructor from './message.vue'; export declare const messageTypes: readonly ["success", "info", "warning", "error"]; export declare type messageType = typeof messageTypes[number]; export interface MessageConfigContext { max?: number; grouping?: boolean; duration?: number; offset?: number; showClose?: boolean; } export declare const messageDefaults: Mutable<{ readonly customClass: ""; readonly center: false; readonly dangerouslyUseHTMLString: false; readonly duration: 3000; readonly icon: undefined; readonly id: ""; readonly message: ""; readonly onClose: undefined; readonly showClose: false; readonly type: "info"; readonly plain: false; readonly offset: 16; readonly zIndex: 0; readonly grouping: false; readonly repeatNum: 1; readonly appendTo: HTMLElement; }>; export declare const messageProps: { readonly customClass: import("element-plus/es/utils").EpPropFinalized; readonly center: import("element-plus/es/utils").EpPropFinalized; readonly dangerouslyUseHTMLString: import("element-plus/es/utils").EpPropFinalized; readonly duration: import("element-plus/es/utils").EpPropFinalized; readonly icon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, undefined, boolean>; readonly id: import("element-plus/es/utils").EpPropFinalized; readonly message: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | VNode | (() => VNode)) & {}) | (() => string | VNode | (() => VNode)) | ((new (...args: any[]) => (string | VNode | (() => VNode)) & {}) | (() => string | VNode | (() => VNode)))[], unknown, unknown, "", boolean>; readonly onClose: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => () => void) | (() => () => void) | { (): () => void; new (): any; readonly prototype: any; } | ((new (...args: any[]) => () => void) | (() => () => void) | { (): () => void; new (): any; readonly prototype: any; })[], unknown, unknown, undefined, boolean>; readonly showClose: import("element-plus/es/utils").EpPropFinalized; readonly type: import("element-plus/es/utils").EpPropFinalized; readonly plain: import("element-plus/es/utils").EpPropFinalized; readonly offset: import("element-plus/es/utils").EpPropFinalized; readonly zIndex: import("element-plus/es/utils").EpPropFinalized; readonly grouping: import("element-plus/es/utils").EpPropFinalized; readonly repeatNum: import("element-plus/es/utils").EpPropFinalized; }; export declare type MessageProps = ExtractPropTypes; export declare const messageEmits: { destroy: () => boolean; }; export declare type MessageEmits = typeof messageEmits; export declare type MessageInstance = InstanceType; export declare type MessageOptions = Partial & { appendTo?: HTMLElement | string; }>>; export declare type MessageParams = MessageOptions | MessageOptions['message']; export declare type MessageParamsNormalized = Omit & { /** * @description set the root element for the message, default to `document.body` */ appendTo: HTMLElement; }; export declare type MessageOptionsWithType = Omit; export declare type MessageParamsWithType = MessageOptionsWithType | MessageOptions['message']; export interface MessageHandler { /** * @description close the Message */ close: () => void; } export declare type MessageFn = { (options?: MessageParams, appContext?: null | AppContext): MessageHandler; closeAll(type?: messageType): void; }; export declare type MessageTypedFn = (options?: MessageParamsWithType, appContext?: null | AppContext) => MessageHandler; export interface Message extends MessageFn { success: MessageTypedFn; warning: MessageTypedFn; info: MessageTypedFn; error: MessageTypedFn; }