import * as React from 'react'; import type { ObfuscatedClassName } from '../utils/common-types'; import type { PolymorphicComponentProps } from '../utils/polymorphism'; import type { AvatarImage as AvatarImageProp, AvatarShape, AvatarSize } from './utils'; /** * Props for the `Avatar` component. */ type AvatarOwnProps = ObfuscatedClassName & { /** * The rendered avatar size, in CSS pixels. */ size: AvatarSize; /** * The avatar shape. * * @default 'circle' */ shape?: AvatarShape; /** * The display name represented by the avatar. * * Used as the default accessible label, to generate fallback initials, and * to assign the deterministic background color when rendering initials. */ name?: string; /** * The avatar image. * * Pass a string for a single image URL, or a source map keyed by intrinsic * image width. Source maps render as native `srcSet`/`sizes` hints, with * the largest valid source used as the fallback `src`. */ image?: AvatarImageProp; /** * Accessible text for the avatar image. * * Defaults to `name`. Pass an empty string when the avatar is decorative. */ alt?: string; /** * Test identifier applied to the avatar root element. */ 'data-testid'?: string; /** * Avatar owns its root sizing styles. Use `exceptionallySetClassName` for the styling escape * hatch. */ style?: never; }; type AvatarProps = PolymorphicComponentProps; /** * Displays an avatar from an image URL, a source map keyed by intrinsic * image width, or initials derived from the provided name (with a background * color). */ declare const Avatar: import("../utils/polymorphism").PolymorphicComponent<"div", AvatarOwnProps, "omitClassName">; export { Avatar }; export type { AvatarProps }; export type { AvatarImage, AvatarShape, AvatarSize } from './utils';