/** * 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, UtamBasePageObject as _UtamBasePageObject } from '@utam/core'; import _BaseIcon from 'salesforce-pageobjects/runtime_copilot_base/pageObjects/baseIcon'; /** * A toggleable button component that visually indicates its pressed state and allows users to interact with it to change its state. * Selector: src-base-button-stateful * generated from JSON dist/runtime_copilot_base/baseButtonStateful.utam.json * @version 2026-03-09T13:56:37.217Z * @author Salesforce */ declare class BaseButtonStateful extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Simulate a click on the stateful button to change its state */ toggleButton(): Promise; /** * Check if the button is in the pressed state * @return string */ isButtonPressed(attrName: string): Promise; /** * Check if the button is disabled * @return string */ isButtonDisabled(attrName: string): Promise; /** * Represents the icon shown when the button is pressed. */ getPressedIcon(): Promise<_BaseIcon | null>; /** * Represents the icon shown when the button is not pressed. */ getUnpressedIcon(): Promise<_BaseIcon | null>; } export = BaseButtonStateful;