import React from "react";
import AddThreepid, { ThirdPartyIdentifier } from "../../../../AddThreepid";
interface IExistingEmailAddressProps {
    email: ThirdPartyIdentifier;
    onRemoved: (emails: ThirdPartyIdentifier) => void;
    /**
     * Disallow removal of this email address when truthy
     */
    disabled?: boolean;
}
interface IExistingEmailAddressState {
    verifyRemove: boolean;
}
export declare class ExistingEmailAddress extends React.Component<IExistingEmailAddressProps, IExistingEmailAddressState> {
    constructor(props: IExistingEmailAddressProps);
    private onRemove;
    private onDontRemove;
    private onActuallyRemove;
    render(): React.ReactNode;
}
interface IProps {
    emails: ThirdPartyIdentifier[];
    onEmailsChange: (emails: ThirdPartyIdentifier[]) => void;
    /**
     * Adding or removing emails is disabled when truthy
     */
    disabled?: boolean;
}
interface IState {
    verifying: boolean;
    addTask: AddThreepid | null;
    continueDisabled: boolean;
    newEmailAddress: string;
}
export default class EmailAddresses extends React.Component<IProps, IState> {
    constructor(props: IProps);
    private onRemoved;
    private onChangeNewEmailAddress;
    private onAddClick;
    private onContinueClick;
    render(): React.ReactNode;
}
export {};
