import React from 'react'; import { toastType } from './content'; export interface OuterFunc { (content: React.ReactNode, duration?: number, onClose?: () => void, mask?: boolean): void; } export interface InnerFunc { (type: toastType, content: React.ReactNode, duration?: number, onClose?: () => void, mask?: boolean): void; } declare const Toast: { useIcons: (iconConfig: { [key: string]: React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>; }) => void; success: OuterFunc; error: OuterFunc; info: OuterFunc; loading: OuterFunc; loaded: () => void; destroy: (type?: "error" | "loading" | "success" | "info" | undefined, onClose?: ((...args: any[]) => void) | undefined) => void; }; export default Toast;