/** * 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, ActionableUtamElement as _ActionableUtamElement, ClickableUtamElement as _ClickableUtamElement, UtamBasePageObject as _UtamBasePageObject } from '@utam/core'; import _BaseAvatar from 'salesforce-pageobjects/runtime_copilot_base/pageObjects/baseAvatar'; import _BaseIcon from 'salesforce-pageobjects/runtime_copilot_base/pageObjects/baseIcon'; /** * Component that displays a citation with an optional icon, link, and type based on whether it is a record or a link. It can handle clicks on the link. * Selector: runtime_copilot_base-citation-item * generated from JSON dist/runtime_copilot_base/citationItem.utam.json * @version 2026-03-09T13:56:37.264Z * @author Salesforce */ declare class CitationItem extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Simulate a click on the record link */ clickRecordLink(): Promise; /** * Simulate a click on the web link with icon */ clickLinkWithIcon(): Promise; /** * Check if the citation container is present and visible * @return boolean */ getCiteContainerVisibility(): Promise; /** * Retrieve the text of the record type label * @return string */ getRecordTypeLabelText(): Promise; /** * Retrieve the text of the external link label * @return string */ getExternalLinkLabelText(): Promise; /** * Returns true if element "citeContainer" present on the page * @return boolean */ verifyCiteContainerPresence(): Promise; /** * Returns true if element "recordTypeLabel" present on the page * @return boolean */ verifyRecordTypeLabelPresence(): Promise; waitForCiteContainer(): Promise<(_BaseUtamElement)>; waitForRecordAvatar(): Promise<_BaseAvatar>; waitForRecordLink(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement)>; waitForRecordTypeLabel(): Promise<(_BaseUtamElement)>; waitForWebLinkIcon(): Promise<_BaseIcon>; waitForLinkWithIcon(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement)>; waitForNewWindowIcon(): Promise<_BaseIcon>; waitForExternalLinkLabel(): Promise<(_BaseUtamElement)>; /** * Represents avatar icon for a record type citation. */ getRecordAvatar(): Promise<_BaseAvatar | null>; /** * Represents the icon for a web link citation. */ getWebLinkIcon(): Promise<_BaseIcon | null>; /** * Represents the icon indicating the link opens in a new window. */ getNewWindowIcon(): Promise<_BaseIcon | null>; } export = CitationItem;