/** * 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, ContainerCtor as _ContainerCtor, UtamBasePageObject as _UtamBasePageObject } from '@utam/core'; import _UserAvatar from 'salesforce-pageobjects/feeds/chat/pageObjects/userAvatar'; import _FeedbackTooltip from 'salesforce-pageobjects/feeds/chat/pageObjects/feedbackTooltip'; /** * A component that represents a chat message block with an avatar, a message body, and an optional feedback tooltip that appears on hover for inbound messages. * Selector: src-message-block * generated from JSON dist/feeds/chat/messageBlock.utam.json * @version 2026-03-09T13:56:35.650Z * @author Salesforce */ export default class MessageBlock extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Check if the avatar container is visible * @return boolean */ isAvatarContainerVisible(): Promise; /** * Check if the message body is visible * @return boolean */ isMessageBodyVisible(): Promise; /** * Retrieve the text content from the message body * @return string */ getMessageText(): Promise; getUserAvatar(): Promise<(_BaseUtamElement)>; getFormattedText(): Promise<(_BaseUtamElement)>; /** * Represents the container for the message body. */ getMessageBodyContent(ContainerCtor: _ContainerCtor): Promise; /** * Represents the avatar of the user, which can be Einstein or the current user. */ getClientAvatar(): Promise<_UserAvatar>; /** * Represents the content of the default slot within the message body. */ getMessageSlotContent(ContainerCtor: _ContainerCtor): Promise; /** * Represents the feedback tooltip which is conditionally rendered for inbound messages. */ getFeedbackTooltip(): Promise<_FeedbackTooltip | null>; }