import React from 'react'; import { NotificationProps } from '../notification-base/notification'; import { NotificationType } from '../notification-base/notice'; export declare type ConfigContent = React.ReactNode | string; export declare type JointContent = ConfigContent | ArgsProps; export interface ContentProps { closable?: boolean; icon?: ConfigContent; closeNode?: ConfigContent; content: ConfigContent; contentClose: () => void; suffixCls: string; type: NotificationType; } export interface ArgsProps extends Partial { content: ConfigContent; icon?: ConfigContent; closeNode?: ConfigContent; } declare type MessageTypeFn = (content: JointContent, duration?: number, onClose?: () => void) => void; declare const Message: Record & { open: (args: ArgsProps) => void; destroy: (key?: React.Key) => void; }; export default Message;