import * as React from "react";
import { EthAddress } from "@joincivil/typescript-types";
import { ICivilContext } from "../context";
export interface PaymentsEthProps {
    postId: string;
    newsroomName: string;
    paymentAddress: EthAddress;
    shouldPublicize: boolean;
    etherToSpend?: number;
    usdToSpend: number;
    resetEthPayments: boolean;
    handleBoostUpdate(newUsdToSpend: number, selectedUsdToSpend: number, etherToSpend: number): void;
    handlePaymentSuccess(userSubmittedEmail: boolean, didSaveEmail: boolean, etherToSpend: number): void;
    handleEditPaymentType(): void;
}
export interface PaymentsEthStates {
    etherToSpend: number;
    usdToSpend: number;
    notEnoughEthError: boolean;
    userAddress?: string;
}
export declare class PaymentsEth extends React.Component<PaymentsEthProps, PaymentsEthStates> {
    static contextType: any;
    static context: ICivilContext;
    static getDerivedStateFromProps(props: PaymentsEthProps, state: PaymentsEthStates): PaymentsEthStates;
    constructor(props: PaymentsEthProps);
    componentDidMount(): Promise<void>;
    render(): JSX.Element;
    private setConvertedAmount;
    private notEnoughEthError;
}
