/** * 消息类型定义 */ type MessageType = 'warning' | 'info' | 'error' | 'success'; /** * 自定义消息 API */ declare const customMessage: { /** * 公共消息分发方法 */ dispatch: (type: MessageType, content: string, duration?: number) => void; /** * 显示警告消息 */ warning: (content: string, duration?: number) => void; /** * 显示信息消息 */ info: (content: string, duration?: number) => void; /** * 显示错误消息 */ error: (content: string, duration?: number) => void; /** * 显示成功消息 */ success: (content: string, duration?: number) => void; /** * 清除所有消息 */ destroy: () => void; }; export default customMessage;