import { type UserAvatarColor, type UserAvatarSize } from '../../core/user-avatar.js'; import type { Placement } from '../../core/position.js'; import { UiElement } from '../shared/element.js'; import '../tooltip/tooltip.js'; /** * Carbon for IBM Products `UserAvatar` (`c4p-user-avatar`): a round avatar of a person — their photo (`image`), a * custom icon (`slot="icon"`), their initials from `name` ("thomas j. watson" → "TW"), or the user icon, in that * order. Sizes sm 24px (label-01), md 32px (body-compact-01), lg 48px (heading-03), xl 64px (heading-04); text-inverse * on one of Carbon's 12 avatar colours (`background-color` `order-1-cyan` … `order-12-teal`, a lighter grade on g90 / * g100). With `tooltip-text` the avatar becomes a button named by that text, which shows it in a tooltip * (`tooltip-alignment`, default bottom) and takes a 2px focus ring. Start the text with the initials ("TW, Thomas J. * Watson", as Carbon's story) so the name holds what is seen (WCAG 2.5.3). * * @slot icon - A custom icon in place of the initials / user icon (sized 16 / 20 / 24 / 32px) * @csspart avatar - The circle * @csspart image - The photo * @csspart trigger - The button around the avatar when it has a tooltip */ export declare class UiUserAvatar extends UiElement { static readonly styles: import("lit").CSSResult; /** The person's name or initials; the avatar shows the initials. */ name: string; /** A photo's URL, shown instead of the initials. */ image: string; /** The photo's alt text. */ imageDescription: string; size: UserAvatarSize; /** One of Carbon's 12 avatar colours, `order-1-cyan` … `order-12-teal`. */ backgroundColor: UserAvatarColor; /** Shown in a tooltip and names the avatar, which becomes a button (e.g. "Thomas J. Watson"). */ tooltipText: string; tooltipAlignment: Placement; private renderContent; render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'ui-user-avatar': UiUserAvatar; } }