/** * 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 } from '@utam/core'; import _Icon from 'salesforce-pageobjects/lightning/pageObjects/icon'; /** * A toggle button component that displays different icons based on the state of the button (pressed or not pressed). When clicked, it changes the state and updates the icon accordingly. * Selector: src-panel-button * generated from JSON dist/devops/center/panelButton.utam.json * @version 2026-03-09T13:56:35.221Z * @author Salesforce */ declare class PanelButton extends _UtamBaseRootPageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Simulate a click action on the toggle button */ clickToggleButton(): Promise; /** * Check if the close icon is visible * @return boolean */ isCloseIconVisible(): Promise; /** * Check if the rows icon is visible * @return boolean */ isRowsIconVisible(): Promise; /** * Return the state of the toggle button (pressed or not) * @return string */ isToggleButtonPressed(attrName: string): Promise; /** * Returns true if element "closeIcon" present on the page * @return boolean */ verifyCloseIconPresence(): Promise; /** * Returns true if element "rowsIcon" present on the page * @return boolean */ verifyRowsIconPresence(): Promise; /** * Represents the icon within the toggle button, which changes based on the button's state. */ getToggleButtonIcon(): Promise<_Icon | null>; } export = PanelButton;