UNPKG

813 BTypeScriptView Raw
1import type { DialogAction, DialogOptions } from './types';
2/**
3 * Display a message prompt dialog with a default confirm button
4 */
5export declare function showDialog(options: DialogOptions): Promise<DialogAction | undefined>;
6/**
7 * Modify the default configuration that affects all `showDialog` calls
8 */
9export declare const setDialogDefaultOptions: (options: DialogOptions) => void;
10/**
11 * Reset the default configuration that affects all `showDialog` calls
12 */
13export declare const resetDialogDefaultOptions: () => void;
14/**
15 * Display a message confirmation dialog with default confirm and cancel buttons
16 */
17export declare const showConfirmDialog: (options: DialogOptions) => Promise<DialogAction | undefined>;
18/**
19 * Close the currently displayed dialog
20 */
21export declare const closeDialog: () => void;