import React, { ReactNode, FC } from 'react'; export type IAlertType = 'success' | 'info' | 'warning' | 'error'; export type ICloseBtnType = 'icon' | 'text'; export type IAlert = { /** 指定警告提示的样式,有四种选择 success、info、warning、error */ type?: IAlertType; /** 警告提示内容 */ message: string; /** 警告提示的辅助性文字介绍 */ description?: string; /** 默认不显示关闭按钮 */ closable?: boolean; /** 自定义关闭按钮 */ closeText?: ReactNode; /** 是否显示辅助图标 */ showIcon?: boolean; icon?: ReactNode; className?: string; style?: React.CSSProperties; /** 关闭时触发的回调函数 */ onClose?: (e: MouseEvent) => void; /** 关闭动画结束后触发的回调函数 */ afterClose?: () => void; children?: ReactNode; }; declare const Alert: FC; export { Alert };