import { ComponentSize } from '../../../hooks'; import { CSSProperties, ExtractPropTypes, PropType } from 'vue'; import type MessageBox from './MessageBox.vue'; export declare type MessageType = '' | 'success' | 'warning' | 'info' | 'error'; export declare type Action = 'confirm' | 'close' | 'cancel'; export declare type MessageBoxType = '' | 'prompt' | 'alert' | 'confirm'; export declare type MessageBoxData = MessageBoxInputData & Action; export interface MessageBoxInputData { value: string; action: Action; } export declare const TypeIconsMap: Record; export interface MessageBoxInputValidator { (value: string): boolean | string; } export declare interface MessageBoxState { title?: string; message: string | null; type: MessageType; icon: string; customClass: string; customStyle: CSSProperties; showInput: boolean; inputValue: string | null; inputPlaceholder: string; inputType: string; inputPattern: RegExp | null; inputValidator: MessageBoxInputValidator | null; inputErrorMessage: string; showConfirmButton: boolean; showCancelButton: boolean; action: Action; dangerouslyUseHTMLString: boolean; confirmButtonText: string; cancelButtonText: string; confirmButtonLoading: boolean; cancelButtonLoading: boolean; confirmButtonClass: string; confirmButtonDisabled: boolean; cancelButtonClass: string; editorErrorMessage: string; beforeClose: null | ((action: Action, instance: MessageBoxState, done: () => void) => void); callback: null | Callback; distinguishCancelAndClose: boolean; modalFade: boolean; modalClass: string; validateError: boolean; zIndex: number; } export declare type Callback = ((value: string, action: Action) => any) | ((action: Action) => any); export declare const messageBoxProps: { buttonSize: { type: PropType; }; modal: { type: BooleanConstructor; default: boolean; }; lockScroll: { type: BooleanConstructor; default: boolean; }; showClose: { type: BooleanConstructor; default: boolean; }; closeOnClickModal: { type: BooleanConstructor; default: boolean; }; closeOnPressEscape: { type: BooleanConstructor; default: boolean; }; closeOnHashChange: { type: BooleanConstructor; default: boolean; }; center: BooleanConstructor; draggable: BooleanConstructor; roundButton: { default: boolean; type: BooleanConstructor; }; container: { type: StringConstructor; default: string; }; boxType: { type: PropType; default: string; }; }; export declare const messageBoxEmits: string[]; export declare type MessageBoxProps = ExtractPropTypes; export declare type MessageBoxEmits = typeof messageBoxEmits; export declare type MessageBoxInstance = InstanceType;