export {};
/**
 * Returns dialog's type, can be one of `alert`, `beforeunload`, `confirm` or `prompt`.
 *
 * :::info
 * Only works with browser dialogs (via BiDi protocol). Native mobile dialogs do
 * not expose a dialog type through WebDriver. Use
 * [`browser.acceptDialog`](/docs/api/mobile/acceptDialog) or
 * [`browser.dismissDialog`](/docs/api/mobile/dismissDialog) to handle them.
 * :::
 *
 * <example>
    :dialogType.js
    // Listen for the dialog event to get the dialog object
    browser.on('dialog', async (dialog) => {
        const type = await dialog.type();
        console.log(type); // prints: 'alert', 'confirm', 'prompt', or 'beforeunload'
    });
 * </example>
 *
 * @alias dialog.type
 * @returns {string}  The type of the dialog
 */
//# sourceMappingURL=type.d.ts.map