import * as React from "react";
import AvatarEditor from "react-avatar-editor";
export interface UserSetAvatarAuthProps {
    headerComponent?: JSX.Element;
    channelID: string;
    onSetAvatarComplete?(): void;
}
export interface UserSetAvatarAuthState {
    avatarDataURL: string;
    errorMessage: string | undefined;
    image?: any;
    preview?: PreviewImageState;
}
export interface PreviewImageState {
    image: string;
    rect: any;
    scale: number;
    width: number;
    height: number;
    borderRadius: number;
}
export declare class UserSetAvatar extends React.Component<UserSetAvatarAuthProps, UserSetAvatarAuthState> {
    editor: AvatarEditor | null;
    constructor(props: UserSetAvatarAuthProps);
    render(): JSX.Element;
    handleNewImage: (e: any) => void;
    private renderAvatarSelector;
    private handleSubmit;
}
