import React from 'react'; interface ArgsProps { content: React.ReactNode; duration: number | null; prefixCls?: string; onClose?: () => void; icon?: React.ReactNode; key?: string | number; style?: React.CSSProperties; className?: string; } export interface MessageParams extends Partial { type: keyof CacheKeyMap; } export interface CacheKeyMap { success?: boolean; error?: boolean; info?: boolean; warning?: boolean; loading?: boolean; } declare function resetMessageCache(): void; declare function messageApi(message: any): { error: (params: string | Partial) => void; info: (params: string | Partial) => void; loading: (params: string | Partial) => void; success: (params: string | Partial) => void; warning: (params: string | Partial) => void; reset: typeof resetMessageCache; }; export default messageApi;