import React from 'react'; import './index.less'; export declare type ToastType = 'success' | 'error' | 'warning' | 'info' | 'loading'; export interface ToastProps { /** Toast 类型 */ icon?: ToastType | React.ReactNode; /** 显示的内容,支持文本或 React 节点 */ content: React.ReactNode; /** 是否显示 */ open?: boolean; /** 自动关闭时间,单位毫秒,0 表示不自动关闭 */ duration?: number; /** 关闭 */ onCancel?: () => void; /** 关闭后回调 */ afterClose?: () => void; /** 自定义样式类名 */ className?: string; /** 自定义样式 */ style?: React.CSSProperties; /** 是否显示遮罩 */ mask?: boolean; } declare const Toast: React.FC; export default Toast;