import React from 'react'; import './index.less'; interface ToastConfig { type: string; content?: string | React.ReactNode; duration?: number; mask?: boolean; position?: 'bottom' | 'middle' | 'top'; contentStyle?: any; top?: number; id?: number; messageType?: 'info' | 'fail' | 'success' | 'warn'; onClose?(): void; destroyDom?(key: number): void; } declare const Toast: React.FC; export default Toast;