/** * 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'; import _BaseAvatar from 'salesforce-pageobjects/feeds/chat/pageObjects/baseAvatar'; /** * Component that displays an avatar for a user, which can be either inbound or outbound. The avatar is represented differently based on the direction of the message. It shows an Einstein icon for inbound messages and a photo URL for outbound messages. The component also sets a background color for the avatar. * Selector: src-user-avatar * generated from JSON dist/feeds/chat/userAvatar.utam.json * @version 2026-03-09T13:56:35.697Z * @author Salesforce */ export default class UserAvatar extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Check if the avatar container is visible * @return boolean */ isAvatarContainerVisible(): Promise; /** * Get the class attribute of the avatar container * @return string */ getAvatarContainerClass(attrName: string): Promise; waitForUserAvatar(): Promise<_BaseAvatar>; /** * Represents the avatar component that may display an image or icon. */ getUserAvatar(): Promise<_BaseAvatar>; }