/// declare module 'zent/lib/sweetalert' { namespace Sweetalert { interface IAlertOption { content: React.ReactNode type: 'info' | 'success' | 'error' | 'warning' title?: React.ReactNode onConfirm?: ((close: () => void) => void) | (() => Promise | boolean) confirmText?: string confirmType?: 'default' | 'primary' | 'danger' | 'success' closeBtn?: boolean maskClosable?: boolean parentComponent?: React.ReactInstance className?: string prefix?: string } interface IConfirmOption extends IAlertOption { onCancel?: () => void cancelText?: string } function alert(option: IAlertOption): () => void function confirm(option: IConfirmOption): () => void } export default Sweetalert }