/** * 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, ClickableUtamElement as _ClickableUtamElement, EditableUtamElement as _EditableUtamElement } from '@utam/core'; /** * Component that provides a prompt interface with input, recommendations, and actions. * Selector: experience_ui_gen_canvas-prompt-bar * generated from JSON dist/experience/ui/gen/canvas/promptBar.utam.json * @version 2026-03-09T13:56:35.538Z * @author Salesforce */ export default class PromptBar extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Click on the close button for recommendations */ clickCloseRecommendations(): Promise; /** * Enter text into the prompt field */ enterPrompt(text: string): Promise; /** * Click on the send button */ clickSendButton(): Promise; /** * Check if the recommendations container is visible * @return boolean */ isRecommendationsVisible(): Promise; /** * Get the disclaimer text * @return String */ getDisclaimerText(): Promise; /** * Check if the limit error for add tile is visible * @return boolean */ isLimitErrorAddTileVisible(): Promise; /** * Check if the limit error for add canvas is visible * @return boolean */ isLimitErrorAddCanvasVisible(): Promise; /** * Check if the send button is disabled * @return boolean */ isSendButtonDisabled(): Promise; /** * Returns true if recommendations container is present on the page * @return boolean */ verifyRecommendationsPresence(): Promise; /** * Returns true if element "limitErrorAddTile" present on the page * @return boolean */ verifyLimitErrorAddTilePresence(): Promise; /** * Returns true if element "limitErrorAddCanvas" present on the page * @return boolean */ verifyLimitErrorAddCanvasPresence(): Promise; /** * Check if the panel is open * @return boolean */ isPanelOpen(): Promise; /** * Represents the close button for recommendations panel */ getCloseRecommendationsButton(): Promise<(_BaseUtamElement & _ClickableUtamElement) | null>; /** * Represents the input field for user text */ getPromptField(): Promise<(_BaseUtamElement & _EditableUtamElement) | null>; /** * Represents the send button with sparkle icon */ getSendButtonIcon(): Promise<(_BaseUtamElement & _ClickableUtamElement) | null>; }