///
import * as React from 'react';
export interface AvatarProps {
/** Shape of avatar, options:`circle`, `square` */
shape?: 'circle' | 'square';
size?: 'large' | 'small' | 'default' | number;
/** Src of image avatar */
src?: string;
/** Type of the Icon to be used in avatar */
icon?: string;
style?: React.CSSProperties;
prefixCls?: string;
className?: string;
children?: any;
alt?: string;
realName?: string;
onError?: () => boolean;
}
export interface AvatarState {
scale: number;
isImgExist: boolean;
}
export default class Avatar extends React.Component {
static defaultProps: {
prefixCls: string;
shape: string;
size: string;
};
private avatarChildren;
constructor(props: AvatarProps);
componentDidMount(): void;
componentDidUpdate(prevProps: AvatarProps, prevState: AvatarState): void;
setScale: () => void;
getNewAvatarColor: (realName: String) => "#EF7F25" | "#3C4D73" | "#2196F3";
handleImgLoadError: () => void;
render(): JSX.Element;
}