import type { Appearance } from '../../../Types/Appearance'; import type { Size } from '../../../Types/Size'; import type { Variant } from '../../../Types/Variant'; import { CustomElement } from '../../Abstracts/CustomElement'; import type { IAvatarElementProps } from './IAvatarElementProps'; declare const AvatarElement_base: (abstract new (...args: Array) => import("../../../Behaviors/Themeable").IThemeableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Sizeable").ISizeableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Appearanceable").IAppearanceableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Variantable").IVariantableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Disableable").IDisableableProps) & typeof CustomElement & import("../../../Behaviors/Themeable").IThemeableCtor; /** * Avatar - A circular profile representation displaying user identity through images, initials, or icons. * * Renders user avatars with multiple fallback options: image, text initials, or icon. * Automatically generates initials from names and provides consistent sizing across different contexts. * Supports status badges, various appearances, and accessibility features for user identification. * * @name AvatarElement * @element mosaik-avatar * @category Media * * @slot - Default content for avatar display (overrides automatic text/icon generation) * @slot badge - Status indicator or notification badge positioned on the avatar * * @csspart image - The avatar image container when using image source * @csspart icon - The fallback icon element when no image or text available * @csspart text - The text/initials container for text-based avatars * @csspart backplate - The circular background container for all avatar content * * @cssprop {String} --avatar-size - Size of the avatar (width and height) * @cssprop {Color} --avatar-background-color - Background color for text/icon avatars * @cssprop {Color} --avatar-foreground-color - Text and icon color * @cssprop {String} --avatar-border-radius - Border radius (typically 50% for circular) * @cssprop {String} --avatar-font-size - Font size for initials text * @cssprop {String} --avatar-font-weight - Font weight for initials text * * @dependency TextElement - For rendering initials and text content * @dependency IconElement - For fallback icon display * @dependency ImageElement - For profile image rendering * * @example * ```html * * * * * * * * * * * ``` * * @public */ export declare class AvatarElement extends AvatarElement_base implements IAvatarElementProps { private readonly _inheritance; private _text; private _textAccessor; private _icon; private _src; private _displayMode; /** * @public */ constructor(); /** * Returns the `is` property. * * @public * @static * @readonly */ static get is(): string; /** * @public */ get text(): string; set text(value: string); /** * @public */ get icon(): string; set icon(value: string); /** * @public */ get src(): string; set src(value: string); /** * Returns the `displayMode` property. * * @public * @readonly * @attr */ get displayMode(): 'image' | 'icon' | 'text' | null; private set displayMode(value); /** * Gets or sets the `textAccessor` property. * * @public * @readonly */ get textAccessor(): (value: string) => string; set textAccessor(value: (value: string) => string); /** * @public * @override */ get size(): Size; set size(value: Size); /** * @public * @override */ get disabled(): boolean; set disabled(value: boolean); /** * @public * @override */ get variant(): Variant; set variant(value: Variant); /** * @public * @override */ get appearance(): Appearance; set appearance(value: Appearance); /** * Returns the `hasBadge` property. * * @public * @readonly * @attr */ get hasBadge(): boolean; /** * @public * * changes the text accessor. */ changeTextAccessor(accessor: (value: string) => string): void; /** * @protected */ protected onTextPropertyChanged(): void; /** * @protected */ protected onIconPropertyChanged(): void; /** * @protected */ protected onSrcPropertyChanged(): void; /** * @private */ private getDisplayMode; } /** * @public */ export declare namespace AvatarElement { type Props = IAvatarElementProps; } /** * @public */ declare global { interface HTMLElementTagNameMap { 'mosaik-avatar': AvatarElement; } } export {}; //# sourceMappingURL=AvatarElement.d.ts.map