import * as React from "react";
import { NoticeType } from "antd/lib/message";
export interface ArgsProps {
    content: any;
    duration?: number;
    type?: NoticeType;
    prefixCls?: string;
    rootPrefixCls?: string;
    getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
    onClose?: () => void;
    icon?: React.ReactNode;
    key?: string | number;
    style?: React.CSSProperties;
    className?: string;
    onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
}
declare type ConfigContent = React.ReactNode;
declare type ConfigDuration = number | (() => void);
declare type JointContent = ConfigContent | ArgsProps;
declare const MessageUtil: {
    success(content: JointContent, duration?: ConfigDuration): void;
    error(content: JointContent, duration?: ConfigDuration): void;
    warning(content: JointContent, duration?: ConfigDuration): void;
    warn(content: JointContent, duration?: ConfigDuration): void;
    info(content: JointContent, duration?: ConfigDuration): void;
    loading(content?: string, duration?: number, callback?: () => void): import("antd/lib/message").MessageType;
};
export default MessageUtil;
