export type DialogType = 'info' | 'warning' | 'error' | 'success'; export interface DialogAction { text: string; role?: 'cancel' | 'destructive' | 'default'; value?: any; } export interface DialogOptions { title?: string; message?: string; type?: DialogType; blocking?: boolean; cancelable?: boolean; confirmText?: string; cancelText?: string; actions?: DialogAction[]; maskColor?: string; animationDuration?: number; } export type DialogState = ({ visible: true; } & Required> & Omit) | { visible: false; }; export type DialogListener = (state: DialogState) => void; declare class DialogServiceImpl { private listeners; private current; private resolver?; subscribe(listener: DialogListener): () => void; private notify; show(options?: DialogOptions): void; alert(options: Omit): Promise; confirm(options: Omit): Promise; submit(result?: any): void; cancel(): void; hide(): void; } export declare const DialogService: DialogServiceImpl; export declare const Dialog: DialogServiceImpl; export {}; //# sourceMappingURL=DialogService.d.ts.map