import type { Ref, SyntheticEvent } from 'react'; import type { BaseProps, ForwardRefForwardPropsComponent, PropsWithDefaults, NoChildrenProp, TestIdProp } from '../../types'; export interface AvatarProps extends BaseProps, NoChildrenProp, TestIdProp { /** The name of the identity the Avatar represents. */ name: string; /** Content of the Avatar as an image source url. */ imageSrc?: string; /** An icon to render as the content of the avatar. imageSrc will take precedence if passed. */ icon?: string; /** Optional color for the icon to be rendered */ color?: string; /** Optional background color for the avatar. Will be auto computed if not passed */ backgroundColor?: string; /** * Shape of the Avatar. * @default 'circle' */ shape?: 'circle' | 'squircle'; /** * Avatar size. * @default 'm' */ size?: 's' | 'm' | 'l' | 'xl'; /** If defined, will render status icon on the avatar. */ status?: 'active'; /** Optional error handler in the event an image fails to load. */ onImageError?: (err: SyntheticEvent) => void; /** Ref for the wrapping element. */ ref?: Ref; } type AvatarPropsWithDefaults = PropsWithDefaults; export declare const StyledAvatarImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit & import("react").RefAttributes & import("../../types").ForwardProps, "ref"> & { ref?: ((instance: HTMLImageElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject | null | undefined; }, never>> & string & Omit, keyof import("react").Component>; export declare const StyledAvatar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute, HTMLDivElement>, Pick & { hasSrc?: boolean; hasBrokenImage?: boolean; }>> & string; export declare const StyledStatus: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute & import("react").RefAttributes, "ref"> & { ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject | null | undefined; }, Pick>> & string & Omit & import("react").RefAttributes> & { getTestIds: (testIdProp?: TestIdProp["testId"]) => import("../../types").TestIdsRecord; }, keyof import("react").Component>; declare const _default: ForwardRefForwardPropsComponent & { getTestIds: (testIdProp?: TestIdProp["testId"]) => import("../../types").TestIdsRecord; }; export default _default; //# sourceMappingURL=Avatar.d.ts.map