import { Component, PartsMap } from 'xinjs'; interface DialogParts extends PartsMap { dialog: HTMLDialogElement; ok: HTMLButtonElement; } export declare class TosiDialog extends Component { #private; static alert(message: string, title?: string): Promise; static confirm(message: string, title?: string): Promise; static prompt(message: string, title?: string, currentValue?: string): Promise; removeOnClose: boolean; closeOnBackgroundClick: boolean; constructor(); dialogWillClose: (reason?: string) => void; initialFocus(): void; showModal: () => Promise; close: (reason?: string) => void; ok: () => void; content: () => HTMLDialogElement; } export declare const tosiDialog: import("xinjs").ElementCreator>; export {};