/// import BaseNotification from '../_class/notification'; import type { ToastProps } from './interface'; export declare type ConfigProps = { maxCount?: number; prefixCls?: string; getContainer?: () => HTMLElement; duration?: number; }; export interface ToastType { close: () => void; } declare function addInstance(noticeProps: ToastProps): { close: () => void; }; declare class Toast extends BaseNotification { static success: (config: ToastProps | string) => ToastType; static info: (config: ToastProps | string) => ToastType; static warning: (config: ToastProps | string) => ToastType; static error: (config: ToastProps | string) => ToastType; static loading: (config: ToastProps | string) => ToastType; static normal: (config: ToastProps | string) => ToastType; static config: (options?: ConfigProps) => void; static clear: () => void; static addInstance: typeof addInstance; remove: (id: string) => void; render(): JSX.Element; } export default Toast; export { ToastProps };