function-call.d.ts 813 B

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