import * as React from "react";
import { ICivilContext } from "../../context";
export interface UniswapBuyProps {
    usdToSpend: number;
    ethToSpend: number;
    ethExchangeRate: number;
    onBuyComplete(): void;
}
export declare class UniswapBuy extends React.Component<UniswapBuyProps, any> {
    static contextType: any;
    context: ICivilContext;
    private isComponentMounted;
    constructor(props: UniswapBuyProps);
    componentDidMount(): Promise<void>;
    componentDidUpdate(prevProps: UniswapBuyProps): Promise<void>;
    componentWillUnmount(): void;
    render(): JSX.Element;
    private updatePrice;
    private buyCVL;
}
