import { NoticeContent, NotificationInstance } from 'rc-notification/lib/Notification'; import { ToastContainerProps } from './ToastContainer'; import './style/toast.css'; declare type IConfig = Omit & NoticeContent; export declare type ToastOpts = Omit; export declare type ToastMethod = (message: string | ToastOpts, config?: IConfig) => { id: string; notificationPromise: Promise; }; 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;