/** * 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, ContainerCtor as _ContainerCtor, UtamBasePageObject as _UtamBasePageObject, BaseUtamElement as _BaseUtamElement } from '@utam/core'; import _Icon from 'salesforce-pageobjects/lightning/pageObjects/icon'; /** * Component that displays a message block with dynamic content, handling inbound message types and showing appropriate icons and slots for customization. * Selector: app_dev_agent-panel-message-block * generated from JSON dist/app_dev_agent/panelMessageBlock.utam.json * @version 2026-03-09T13:56:34.870Z * @author Salesforce */ declare class PanelMessageBlock extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Check that the message container is present and visible * @return boolean * @param selectorStr CSS selector parameter */ isMessageContainerVisible(selectorStr: string): Promise; /** * Check that the chat icon is present * @return boolean * @param selectorStr CSS selector parameter */ isChatIconPresent(selectorStr: string): Promise; /** * Check that the chat icon is visible * @return boolean * @param selectorStr CSS selector parameter */ isChatIconVisible(selectorStr: string): Promise; /** * Check that the message body is present and visible * @return boolean * @param selectorStr CSS selector parameter */ isMessageBodyVisible(selectorStr: string): Promise; /** * Check that the message content container is present and visible * @return boolean * @param selectorStr CSS selector parameter * @param messageSelectorStr CSS selector parameter for message content */ isMessageContentVisible(selectorStr: string, messageSelectorStr: string): Promise; /** * Get the dynamic class of the message content container * @return string * @param selectorStr CSS selector parameter * @param messageSelectorStr CSS selector parameter for message content */ getMessageContentClass(selectorStr: string, messageSelectorStr: string, attrName: string): Promise; /** * Check if the message container is enabled * @return boolean * @param selectorStr CSS selector parameter */ isMessageContainerEnabled(selectorStr: string): Promise; /** * Returns true if element "chatIcon" present on the page * @return boolean * @param selectorStr CSS selector parameter */ verifyChatIconPresence(selectorStr: string): Promise; /** * Represents the Lightning icon for inbound messages * @param selectorStr CSS selector parameter */ getInboundMessageIcon(selectorStr: string): Promise<_Icon | null>; /** * Represents the slot for injecting custom content into the message block * @param selectorStr CSS selector parameter * @param messageSelectorStr CSS selector parameter for message content */ getSlotContent(selectorStr: string, messageSelectorStr: string, ContainerCtor: _ContainerCtor): Promise; } export = PanelMessageBlock;