import { NoticeType } from '../const/types'; import { IconType } from '../icon'; export interface MessageOptions { type?: NoticeType; content?: string; duration?: number; closable?: boolean; icon?: IconType[]; color?: string; onClose?: () => void; } export interface MessageApi { name: "message"; info(content: string, duration?: number, onClose?: () => void): void; success(content: string, duration?: number, onClose?: () => void): void; warning(content: string, duration?: number, onClose?: () => void): void; error(content: string, duration?: number, onClose?: () => void): void; loading(content: string, duration?: number): () => void; show(options: MessageOptions): () => void; destroy(): void; } declare const message: MessageApi; export default message;