/**
 * @license chowa v1.1.3
 *
 * Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn).
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
import * as React from 'react';
import * as PropTypes from 'prop-types';
export interface AvatarProps {
    className?: string;
    style?: React.CSSProperties;
    theme?: 'dark' | 'light' | 'primary';
    text?: string;
    shape?: 'circle' | 'rect';
    iconType?: string;
    src?: string;
}
export interface AvatarState {
    imgLoadFailure: boolean;
}
declare class Avatar extends React.PureComponent<AvatarProps, AvatarState> {
    static propTypes: {
        className: PropTypes.Requireable<string>;
        style: PropTypes.Requireable<object>;
        theme: PropTypes.Requireable<string>;
        text: PropTypes.Requireable<string>;
        shape: PropTypes.Requireable<string>;
        iconType: PropTypes.Requireable<string>;
        src: PropTypes.Requireable<string>;
    };
    static defaultProps: {
        theme: string;
        shape: string;
        iconType: string;
    };
    constructor(props: AvatarProps);
    private onImageLoadError;
    render(): JSX.Element;
}
export default Avatar;
