import { ReactNode, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react'; import { PopupProps } from '../popup'; import { ButtonProps } from '../button'; export type DialogCloseType = 'close' | 'cancel' | 'confirm'; type DialogButtonType = 'round' | 'text'; export interface DialogProps extends PopupProps { title?: ReactNode; message?: ReactNode; header?: ReactNode; footer?: ReactNode; headed?: boolean; buttonType?: DialogButtonType; showCancel?: boolean; cancelText?: ReactNode; cancelProps?: ButtonProps; showConfirm?: boolean; confirmText?: ReactNode; confirmProps?: ButtonProps; maskClosable?: boolean; onClose?: () => void | Promise; onCancel?: () => void | Promise; onConfirm?: () => void | Promise; visible?: boolean; defaultVisible?: boolean; onVisible?: (visible: boolean) => void; } export interface DialogRef { } export type DialogFC = ForwardRefExoticComponent & RefAttributes>; export declare const Dialog: DialogFC; export default Dialog;