import { CSSProperties, VNode } from 'vue'; import { MountElement } from '../utils'; import { MessageApi } from './useMessage'; export type ContentType = string | VNode | (() => VNode); export interface Props { duration?: number | null; top?: string | number; maxCount?: number; keepAliveOnHover?: boolean; to?: string | MountElement; } export interface MessageOptions { content?: ContentType; icon?: VNode | (() => VNode); duration?: number | null; class?: string; style?: CSSProperties; onClick?: () => void; onClose?: () => void; } type Mode = 'open' | 'info' | 'success' | 'error' | 'warning' | 'loading'; export interface MessageUpdate extends MessageOptions { mode?: Mode; } export interface MessageReactive extends MessageOptions { readonly key: string; destroy: () => void; update: (options: MessageUpdate) => void; } declare const _default: import('vue').DefineComponent any; close: (key: string) => any; ready: (api: MessageApi) => any; }, string, import('vue').PublicProps, Readonly & Readonly<{ onClick?: ((e: Event) => any) | undefined; onClose?: ((key: string) => any) | undefined; onReady?: ((api: MessageApi) => any) | undefined; }>, { top: string | number; duration: number | null; to: string | MountElement; keepAliveOnHover: boolean; maxCount: number; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; export default _default;