import type { ButtonType } from '../Button/types'; export type Action = 'cancel' | 'confirm' | 'close'; export type MessageBoxBeforeCloseFn = (action?: Action) => void; export interface MessageBoxEvents { onConfirm?: () => void; onCancel?: () => void; } export interface MessageBoxOptions extends MessageBoxEvents { title?: string; type?: string; content?: string; message?: string; modal?: boolean; showClose?: boolean; callback?: MessageBoxBeforeCloseFn | null; duration?: number; cancelText?: string; confirmText?: string; center?: boolean; showInput?: boolean; inputValue?: string; inputPlaceholder?: string; remove?: Function; } export interface MessageBoxProps extends MessageBoxOptions { visible: boolean; zIndex?: number; } export interface IMessageBoxBtn { type?: ButtonType; text?: string; customClasses?: string[]; action?: () => void; disabled?: boolean; } export interface MessageBoxHandle { close: () => void; }