import * as React from 'react'; import { SoftBackgrounds } from '../../utils/index.js'; import type { AnyString, PolymorphicForwardRefComponent } from '../../utils/index.js'; export type AvatarStatus = 'online' | 'busy' | 'away' | 'offline'; type StatusTitles = { [key in Exclude]: string; }; type AvatarProps = { /** * Size of an avatar. * @default 'small' */ size?: 'small' | 'medium' | 'large' | 'x-large'; /** * Status/Availability of a user. */ status?: AvatarStatus; /** * Abbreviation to be displayed. */ abbreviation?: string; /** * User image to be displayed. Can be `` or `` or anything else. */ image?: React.JSX.Element; /** * Color of the icon. You can use `getUserColor` function to generate color from user name or email. If not provided, default background color from CSS styling will be used (hsl(72, 51%, 56%) / olive green). */ backgroundColor?: keyof typeof SoftBackgrounds | AnyString; /** * Translated status messages shown on hover. */ translatedStatusTitles?: StatusTitles; }; export declare const defaultStatusTitles: StatusTitles; /** * Basic avatar component * @example * Small icon with abbreviation * * @example * Medium icon with image * }/> * @example * Large icon with status * * @example * X-large icon with image * }/> */ export declare const Avatar: PolymorphicForwardRefComponent<"span", AvatarProps>; export {};