/** * 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 _BaseIcon from 'salesforce-pageobjects/feeds/chat/pageObjects/baseIcon'; /** * Component that displays an avatar which can either be an image if a source is provided or a fallback icon otherwise. * Selector: src-base-avatar * generated from JSON dist/feeds/chat/baseAvatar.utam.json * @version 2026-03-09T13:56:35.603Z * @author Salesforce */ export default class BaseAvatar extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Check if the avatar span is present in the DOM * @return boolean */ isAvatarSpanPresent(): Promise; /** * Check if the image avatar is visible * @return boolean */ isImageAvatarVisible(): Promise; /** * Retrieve the alternative text of the image avatar * @return string */ getImageAvatarAltText(attrName: string): Promise; /** * Returns true if element "imageAvatar" present on the page * @return boolean */ verifyImageAvatarPresence(): Promise; /** * Represents the fallback icon element when no image source is provided. */ getFallbackIcon(): Promise<_BaseIcon | null>; }