/** * 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, UtamBasePageObject as _UtamBasePageObject } from '@utam/core'; import _FormattedRichText from 'salesforce-pageobjects/lightning/pageObjects/formattedRichText'; /** * Component that displays a chat message with associated metadata such as the sender and timestamp within a chat interface. The message can be of different types, including inbound, outbound, event, or bookend. * Selector: experience_ui_gen_canvas-chat-message * generated from JSON dist/experience/ui/gen/canvas/chatMessage.utam.json * @version 2026-03-09T13:56:35.480Z * @author Salesforce */ export default class ChatMessage extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Check if the chat item is visible * @return boolean */ isChatItemVisible(): Promise; /** * Check if the message metadata is visible * @return boolean */ isMessageMetaVisible(): Promise; /** * Retrieve the text content of the message metadata * @return string */ getMessageMetaText(): Promise; /** * Returns true if element "chatItem" present on the page * @return boolean */ verifyChatItemPresence(): Promise; /** * Returns true if element "messageMeta" present on the page * @return boolean */ verifyMessageMetaPresence(): Promise; /** * Represents the rich text formatted chat message. */ getChatMessage(): Promise<_FormattedRichText | null>; }