import { ThemeFullVariantAvatarType } from "../../type/variant"; import { ToneMinimalVariantType } from "../../type/tone"; /** * @part icon - The selected icon of the avatar * @part wrapper - The wrapper which contains media displayed * @part media - The media displayed * @category data */ export declare class MdsAvatar { private element; imageFailed: boolean; loaded: boolean; private observer?; private fittyElements; private fitElement?; /** * Specifies the path to the icon * @see https://magma.maggiolicloud.it/storybook/?path=/story/design-icon--default */ readonly icon?: string | undefined; /** * The user's inizials displayed if there's no image available, initials will override tone and variant senttings to keep user recognizable from others */ readonly initials?: string; /** * The user's inizials displayed if there's no image available, initials will override tone and variant senttings to keep user recognizable from others */ readonly count?: number; /** * Specifies the path to the image */ readonly src?: string; /** * Specifies the color tone of the component */ readonly tone?: ToneMinimalVariantType; /** * Specifies the color variant of the component */ variant?: ThemeFullVariantAvatarType; private variants; private addFontResize; private removeFontResize; private syncFontResize; private readonly handleImgLoadError; private readonly handleImgLoadSuccess; private hasCount; private hasSrc; /** * The one source the avatar shows, in a single order: `count`, then the image of `src` (until * it fails to load), then `initials`, then `icon`, then the person glyph. Each pair of sources * used to be resolved on its own, in a circle (`icon` hid `src`, `src` hid `initials`, * `initials` hid `icon`), and some combinations rendered an empty avatar. */ private content; private checkInitialsVariant; componentWillLoad(): void; componentDidRender(): void; initialsHandler(): void; countHandler(): void; srcHandler(): void; render(): any; }