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 backplate - The circular background container for all avatar content * @csspart icon - The icon part. * @csspart icon - The fallback icon element when no image or text available * @csspart text - The text/initials container for text-based avatars * * @cssprop {Color} --avatar-background-color - Background color for text/icon avatars * @cssprop {String} --avatar-badge-gap - The badge gap CSS custom property. * @cssprop {String} --avatar-badge-horizontal-align - The badge horizontal align CSS custom property. * @cssprop {String} --avatar-badge-radius - The badge radius CSS custom property. * @cssprop {String} --avatar-badge-vertical-align - The badge vertical align CSS custom property. * @cssprop {String} --avatar-border-color - The border color CSS custom property. * @cssprop {String} --avatar-border-radius - Border radius (typically 50% for circular) * @cssprop {String} --avatar-border-style - The border style CSS custom property. * @cssprop {String} --avatar-border-width - The border width CSS custom property. * @cssprop {String} --avatar-diameter - The diameter CSS custom property. * @cssprop {String} --avatar-font-family - The font family CSS custom property. * @cssprop {String} --avatar-font-letter-spacing - The font letter spacing CSS custom property. * @cssprop {String} --avatar-font-line-height - The font line height CSS custom property. * @cssprop {String} --avatar-font-size - Font size for initials text * @cssprop {String} --avatar-font-text-decoration - The font text decoration CSS custom property. * @cssprop {String} --avatar-font-text-transform - The font text transform CSS custom property. * @cssprop {String} --avatar-font-weight - Font weight for initials text * @cssprop {Color} --avatar-foreground-color - Text and icon color * @cssprop {String} --avatar-gap - The gap CSS custom property. * @cssprop {String} --avatar-offset - The offset CSS custom property. * @cssprop {String} --avatar-padding-bottom - The padding bottom CSS custom property. * @cssprop {String} --avatar-padding-left - The padding left CSS custom property. * @cssprop {String} --avatar-padding-right - The padding right CSS custom property. * @cssprop {String} --avatar-padding-top - The padding top CSS custom property. * @cssprop {String} --avatar-shadow - The shadow CSS custom property. * @cssprop {String} --avatar-shadow-blur - The shadow blur CSS custom property. * @cssprop {String} --avatar-shadow-color - The shadow color CSS custom property. * @cssprop {String} --avatar-shadow-offset-x - The shadow offset x CSS custom property. * @cssprop {String} --avatar-shadow-offset-y - The shadow offset y CSS custom property. * @cssprop {String} --avatar-shadow-spread - The shadow spread CSS custom property. * @cssprop {String} --avatar-transition-duration - The transition duration CSS custom property. * @cssprop {String} --avatar-transition-mode - The transition mode CSS custom property. * @cssprop {String} --avatar-transition-property - The transition property CSS custom property. * @cssprop {String} --avatar-translate - The translate CSS custom property. * * @dependency mosaik-icon - The Icon element. * @dependency mosaik-image - The Image element. * @dependency mosaik-text - The Text element. * * @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