import { createVNode, VNode } from 'vue'; export interface MessageOptions { type?: 'warning' | 'error'; message?: ((fn: typeof createVNode) => VNode) | string; showClose?: boolean; onClosed?: () => void; duration?: number; } type InputMessageOptions = MessageOptions | string; /** * 创建Message */ declare const useMessage: { (inputOptions: InputMessageOptions): { id: string; el: HTMLElement; close: () => void; }; success: any; info: any; warning: (options: InputMessageOptions) => { id: string; el: HTMLElement; close: () => void; }; error: (options: InputMessageOptions) => { id: string; el: HTMLElement; close: () => void; }; close: (id: string) => void; clear: () => void; }; export default useMessage;