/** * 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 _Spinner from 'salesforce-pageobjects/lightning/pageObjects/spinner'; import _ButtonIcon from 'salesforce-pageobjects/lightning/pageObjects/buttonIcon'; import _FormattedRichText from 'salesforce-pageobjects/lightning/pageObjects/formattedRichText'; /** * A component that allows users to input text, send messages, and displays error messages for excessive input length. It includes a spinner while loading, a textarea for input, a send button, error messages, and a disclaimer message. * Selector: app_dev_agent_base-base-chat-input * generated from JSON dist/app_dev_agent/baseChatInput.utam.json * @version 2026-03-09T13:56:34.835Z * @author Salesforce */ declare class BaseChatInput extends _UtamBaseRootPageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Clears the message textarea and types a new message */ typeMessage(text: string): Promise; /** * Returns the text content of the message textarea * @return string */ getMessageText(): Promise; /** * Checks if the error message for too many characters is visible * @return boolean */ isErrorMessageVisible(): Promise; /** * Returns the text content of the error message * @return string */ getErrorMessageText(): Promise; /** * Checks if the character count error message is visible * @return boolean */ isErrorCharCountVisible(): Promise; /** * Returns the text content of the character count message * @return string */ getCharCountText(): Promise; /** * Checks if the disclaimer text is visible * @return boolean */ isDisclaimerVisible(): Promise; /** * Returns the text content of the disclaimer * @return string */ getDisclaimerText(): Promise; /** * Returns true if element "errorTooManyChars" present on the page * @return boolean */ verifyErrorTooManyCharsPresence(): Promise; /** * Returns true if element "errorCharCount" present on the page * @return boolean */ verifyErrorCharCountPresence(): Promise; /** * Returns true if element "disclaimerText" present on the page * @return boolean */ verifyDisclaimerTextPresence(): Promise; /** * Check if the main relative container is visible * @return boolean */ isRelativeContainerVisible(): Promise; /** * Check if the send button container is visible * @return boolean */ isSendButtonContainerVisible(): Promise; /** * Check if the error message container is visible * @return boolean */ isErrorMessageContainerVisible(): Promise; /** * Check if the error message container is present in DOM * @return boolean */ isErrorMessageContainerPresent(): Promise; /** * Check if the disclaimer rich text component is visible * @return boolean */ isDisclaimerRichTextVisible(): Promise; /** * Check if the extended height container is visible for enhanced mode * @return boolean */ isExtendedHeightContainerVisible(): Promise; /** * Check if the extended height container is present in DOM * @return boolean */ isExtendedHeightContainerPresent(): Promise; /** * Check if the fixed height textarea is visible * @return boolean */ isFixedHeightTextareaVisible(): Promise; /** * Check if the auto-expand textarea is visible * @return boolean */ isAutoExpandTextareaVisible(): Promise; /** * Check if the disabled textarea is visible * @return boolean */ isDisabledTextareaVisible(): Promise; /** * Focus on the message textarea */ focusTextarea(): Promise; /** * Clear the message textarea content */ clearTextarea(): Promise; /** * Check if the input container is visible * @return boolean */ isInputContainerVisible(): Promise; /** * Check if the loading spinner is present in DOM * @return boolean */ isLoadingSpinnerPresent(): Promise; waitForLoadingSpinner(): Promise<_Spinner>; /** * Represents a spinner that indicates loading state */ getLoadingSpinner(): Promise<_Spinner | null>; /** * Send button to submit the message */ getSendButtonIcon(): Promise<_ButtonIcon>; /** * Main relative positioned container for the component */ getRelativeContainer(): Promise<(_BaseUtamElement)>; /** * Container for the send button with grid layout */ getSendButtonContainer(): Promise<(_BaseUtamElement)>; /** * Container for error messages when input validation fails */ getErrorMessageContainer(): Promise<(_BaseUtamElement) | null>; /** * Rich text component for displaying formatted disclaimer */ getDisclaimerRichText(): Promise<_FormattedRichText | null>; /** * Container with extended height for enhanced project creation mode */ getExtendedHeightContainer(): Promise<(_BaseUtamElement) | null>; /** * Textarea with fixed height when fixedTextArea is enabled */ getFixedHeightTextarea(): Promise<(_BaseUtamElement) | null>; /** * Textarea with auto-expand functionality */ getAutoExpandTextarea(): Promise<(_BaseUtamElement) | null>; /** * Textarea in disabled state */ getDisabledTextarea(): Promise<(_BaseUtamElement) | null>; } export = BaseChatInput;