import * as React from "react";
import { ICivilContext } from "../context";
export interface CurrencyConverterProps {
    currencyCodeFrom: string;
    currencyLabelFrom?: string | JSX.Element;
    currencyCodeTo: string;
    currencyLabelTo?: string | JSX.Element;
    displayErrorMsg?: boolean;
    fromValue?: string;
    className?: string;
    doConversion(fromValue: number): Promise<number>;
    onConversion(fromValue: number, toValue: number): void;
    onNotEnoughEthError?(error: boolean): void;
}
export interface CurrencyConverterState {
    fromValue: number;
    toValue: number;
    balance: number;
    enoughEthError: boolean;
}
export declare class CurrencyConverter extends React.Component<CurrencyConverterProps, CurrencyConverterState> {
    static contextType: any;
    context: ICivilContext;
    private handleConversionDebounced;
    constructor(props: any);
    componentDidMount(): Promise<void>;
    render(): JSX.Element;
    private handleConversion;
    private onNotEnoughEthError;
    private renderErrorMsg;
}
