declare const AVATAR_SIZES: readonly [80, 72, 62, 50, 40, 36, 30, 28, 24, 20, 18, 16, 12]; /** * Supported avatar sizes, in CSS pixels. */ type AvatarSize = (typeof AVATAR_SIZES)[number]; /** * Supported avatar clipping shapes. */ type AvatarShape = 'circle' | 'rounded'; /** * Avatar image source. * * Use a string for a single image URL, or a source map keyed by intrinsic image width. Source maps * are converted to native `srcSet` width descriptors. */ type AvatarImage = string | Record; type AvatarImageSource = { sourceSize: number; src: string; }; type ImageSources = { src: string; srcSet?: string; sizes?: string; sources?: AvatarImageSource[]; }; declare const AVATAR_META_COLOR_COUNT = 20; declare function normalizeAvatarName(name?: string): string; declare function getInitials(name?: string): string; declare function getSources(image: AvatarImage | undefined, size: AvatarSize): ImageSources | undefined; declare function getAvatarImageIdentityKey(image?: AvatarImage): string; declare function getAvailableImageSources(imageProps: ImageSources | undefined, failedSources: readonly string[]): ImageSources | undefined; declare function getAvatarMetaColorIndex(name?: string): number; export { AVATAR_META_COLOR_COUNT, AVATAR_SIZES, getAvailableImageSources, getAvatarImageIdentityKey, getAvatarMetaColorIndex, getInitials, getSources, normalizeAvatarName, }; export type { AvatarImage, AvatarImageSource, AvatarShape, AvatarSize, ImageSources };