import { SemanticSizes } from '../../utils/constants'; /** * @slot icon - if you want to add an icon to the avatar, use this slot with an svg or nv-icon */ export declare class NvAvatar { /****************************************************************************/ /** * Set size to ExtraSmall to the avatar. * @deprecated use size instead. */ readonly xsmall: boolean; /** * Set size to Small to the avatar. * @deprecated use size instead. */ readonly small: boolean; /** * Set size to Medium to the avatar. * @deprecated use size instead. */ readonly medium: boolean; /** * Set size to Large to the avatar. * @deprecated use size instead. */ readonly large: boolean; /** * Set size to ExtraLarge to the avatar. * @deprecated use size instead. */ readonly xlarge: boolean; /** * Set initials to the avatar. * @deprecated use initials instead. */ readonly text: string; /** * Set src to the avatar. * @deprecated use src instead. */ readonly url: string; componentWillRender(): void; /****************************************************************************/ /** * If and image is provided, add an alt tag to describe it. */ readonly alt: string; /** * Will insert an image into the avatar. */ src: string; /** * Initials of the avatar. Usually use two letters * When filled with the src parameter, the text will not be rendered. */ initials: string; /** * Define the size of the avatar. You can use t-shirt sizes. */ size: `${SemanticSizes}`; /** * You can apply different colors on the Avatar. * Use a string number between 1 and 10. */ readonly color: string; /****************************************************************************/ /** * Makes sure the initials are trimmed to 2 letters. * @param {string} initials - The initials to be trimmed. * @returns {string} The trimmed initials. */ private trimInitials; /****************************************************************************/ render(): any; }