/** * Copyright (c) 2025, Salesforce, Inc. * All rights reserved. * For full license text, see the LICENSE file or https://utam.dev/salesforce/license */ import { Driver as _Driver, Element as _Element, Locator as _Locator, BaseUtamElement as _BaseUtamElement, UtamBaseRootPageObject as _UtamBaseRootPageObject, ActionableUtamElement as _ActionableUtamElement, ClickableUtamElement as _ClickableUtamElement } from '@utam/core'; /** * Library: LightningConfirm * Interact with the singular confirm modal created by the LightningConfirm library. * Click the OK or Cancel buttons. Get the message text, the header label, or the header without the label using the aria-label attribute. * generated from JSON dist/lightning/confirm.utam.json * @version 2026-03-09T13:56:36.017Z * @author Salesforce */ declare class Confirm extends _UtamBaseRootPageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Clicks confirm OK button and wait for absence of lightning-interactive-dialog-base */ clickOK(): Promise; /** * Clicks Cancel OK button and wait for absence of lightning-interactive-dialog-base */ clickCancel(): Promise; /** * Get the confirm prompt header label * @return string */ getHeaderLabel(): Promise; /** * Gets confirm header aria label of headerless variant * @return string */ getHeaderlessLabel(): Promise; /** * Gets confirm prompt message text * @return string */ getMessage(): Promise; /** * Checks if the focus is on confirm prompt aria label text * @return boolean */ isFocused(): Promise; /** * Checks if confirm prompt is shown * @return boolean */ isConfirmShown(): Promise; getOkButton(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement) | null>; getCancelButton(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement) | null>; getHeader(): Promise<(_BaseUtamElement) | null>; } export = Confirm;