API to open, close and communicate with dialogs.
Closes an open dialog, rejecting the promise returned by open.
Closes an open dialog, resolving the promise returned by open with a value.
The value selected in the dialog. The value should be compatible with the structured clone
Opens a dialog.
A Promise that resolves with DialogProperties of the current dialog.