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<HTMLImageElement>) => void;
    /** Ref for the wrapping element. */
    ref?: Ref<HTMLDivElement | HTMLImageElement>;
}
type AvatarPropsWithDefaults = PropsWithDefaults<AvatarProps, 'shape' | 'size'>;
export declare const StyledAvatarImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("../Image").ImageProps, "ref"> & import("react").RefAttributes<HTMLImageElement> & 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<HTMLImageElement> | null | undefined;
}, never>> & string & Omit<ForwardRefForwardPropsComponent<import("../Image").ImageProps>, keyof import("react").Component<any, {}, any>>;
export declare const StyledAvatar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<AvatarPropsWithDefaults, "color" | "size" | "icon" | "backgroundColor" | "ref" | "className" | "shape" | "status" | "testId" | "imageSrc" | "onImageError"> & {
    hasSrc?: boolean;
    hasBrokenImage?: boolean;
}>> & string;
export declare const StyledStatus: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("../Badges").AlertProps, "ref"> & import("react").RefAttributes<HTMLDivElement>, "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<HTMLDivElement> | null | undefined;
}, Pick<AvatarPropsWithDefaults, "size">>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("../Badges").AlertProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
    getTestIds: (testIdProp?: TestIdProp["testId"]) => import("../../types").TestIdsRecord<readonly []>;
}, keyof import("react").Component<any, {}, any>>;
declare const _default: ForwardRefForwardPropsComponent<AvatarProps> & {
    getTestIds: (testIdProp?: TestIdProp["testId"]) => import("../../types").TestIdsRecord<readonly []>;
};
export default _default;
//# sourceMappingURL=Avatar.d.ts.map