import { ModalProps } from "../../../index"; import { SyntheticEvent } from 'react'; export interface AlertDialogProps extends ModalProps { /** * @description 类型 * @descriptionEn type * @default info */ type?: 'success' | 'info' | 'warning' | 'error' | 'confirm'; /** * @description 确认按钮是否带有danger属性 * @descriptionEn whether the confirm button has a danger property * @default false */ danger?: boolean; /** * @description 内容 * @descriptionEn content * @default - */ content?: React.ReactNode; /** * @description 关闭时触发的回调函数 * @descriptionEn callback function triggered when closed * @default - */ onClose?: (e: SyntheticEvent) => any; } type AlertDialogStaticProps = Omit; declare const _default: { (props: AlertDialogProps): JSX.Element; success: (props?: AlertDialogStaticProps) => void; info: (props?: AlertDialogStaticProps) => void; warning: (props?: AlertDialogStaticProps) => void; error: (props?: AlertDialogStaticProps) => void; confirm: (props?: AlertDialogStaticProps) => void; }; export default _default;