import { NoticeContent, NotificationInstance } from 'rc-notification/lib/Notification';
import { ToastContainerProps } from './ToastContainer';
import './style/toast.css';
declare type IConfig = Omit<ToastContainerProps, 'type' | 'message'> & NoticeContent;
export declare type ToastOpts = Omit<ToastContainerProps, 'type'>;
export declare type ToastMethod = (message: string | ToastOpts, config?: IConfig) => {
    id: string;
    notificationPromise: Promise<NotificationInstance>;
};
export declare type ToastInterface = {
    config: (config: IConfig) => void;
    notification: NotificationInstance;
    success: ToastMethod;
    warning: ToastMethod;
    info: ToastMethod;
    error: ToastMethod;
};
declare const toastApi: ToastInterface;
export default toastApi;
