/** * 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'; /** * The Lightning Web Component (LWC) is designed to manage inter-component communication within a messaging context. It provides the ability to handle value changes, message actions, and component loading errors, and it dispatches custom events to notify other components about data changes. This component is likely used within a larger application where messages or forms need to be processed, validated, and reacted upon, particularly in a chat or feed-like environment. * Selector: src-message-context * generated from JSON dist/feeds/chat/messageContext.utam.json * @version 2026-03-09T13:56:35.653Z * @author Salesforce */ declare class MessageContext extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Returns the message mode of the component * @return string */ getMessageMode(attrName: string): Promise; /** * Returns the message object of the component * @return string */ getMessageObject(attrName: string): Promise; /** * Checks if the message mode element is visible * @return boolean */ assertMessageModeVisibility(): Promise; /** * Checks if the message object element is visible * @return boolean */ assertMessageObjectVisibility(): Promise; /** * Returns true if element "valueChangeHandler" present on the page * @return boolean * @param selectorStr CSS selector parameter */ verifyValueChangeHandlerPresence(selectorStr: string): Promise; /** * Returns true if element "messageActionHandler" present on the page * @return boolean * @param selectorStr CSS selector parameter */ verifyMessageActionHandlerPresence(selectorStr: string): Promise; /** * Returns true if element "componentLoadingErrorHandler" present on the page * @return boolean * @param selectorStr CSS selector parameter */ verifyComponentLoadingErrorHandlerPresence(selectorStr: string): Promise; } export = MessageContext;