type ShowFun = (message: string, title?: string, escapeHTML?: boolean) => Promise; type ShowConfirmFun = (message: string, title?: string | null, escapeHTML?: boolean, type?: 'info' | 'warning') => Promise; export default interface IMessageBox { showInfo: ShowFun; showConfirm: ShowConfirmFun; } declare enum ModalResult { MR_OK = 1, MR_CANCEL = 2, MR_CLOSE = 3 } declare const InfoButtons: { text: any; type: string; result: ModalResult; }[]; declare const ConfirmButtons: { text: any; type: string; result: ModalResult; }[]; declare const initialize: (showInfo: any, showConfirm: any) => void; export { initialize, ModalResult, InfoButtons, ConfirmButtons };