import { FullChannelState, IVectorChainService, MinimalTransaction, ChainError, Result, IChainServiceStore, FullTransferState, TransactionEvent, TransactionEventMap, TransactionResponseWithResult } from "@connext/vector-types";
import { Signer } from "@ethersproject/abstract-signer";
import { BigNumber } from "@ethersproject/bignumber";
import { JsonRpcProvider, TransactionReceipt } from "@ethersproject/providers";
import { BaseLogger } from "pino";
import { EthereumChainReader } from "./ethReader";
export declare const EXTRA_GAS_PRICE: BigNumber;
export declare const EXTRA_GAS = 50000;
export declare const waitForTransaction: (provider: JsonRpcProvider, transactionHash: string, confirmations?: number | undefined, timeout?: number | undefined) => Promise<Result<TransactionReceipt, ChainError>>;
export declare class EthereumChainService extends EthereumChainReader implements IVectorChainService {
    private readonly store;
    private readonly defaultRetries;
    private signers;
    private queue;
    private evts;
    constructor(store: IChainServiceStore, chainProviders: {
        [chainId: string]: JsonRpcProvider;
    }, signer: string | Signer, log: BaseLogger, defaultRetries?: number);
    sendDisputeChannelTx(channelState: FullChannelState): Promise<Result<TransactionResponseWithResult, ChainError>>;
    sendDefundChannelTx(channelState: FullChannelState, assetsToDefund?: string[], indices?: string[]): Promise<Result<TransactionResponseWithResult, ChainError>>;
    sendDisputeTransferTx(transferIdToDispute: string, activeTransfers: FullTransferState[]): Promise<Result<TransactionResponseWithResult, ChainError>>;
    sendDefundTransferTx(transferState: FullTransferState, responderSignature?: string): Promise<Result<TransactionResponseWithResult, ChainError>>;
    sendDeployChannelTx(channelState: FullChannelState, gasPrice: BigNumber, deposit?: {
        amount: string;
        assetId: string;
    }): Promise<Result<TransactionResponseWithResult, ChainError>>;
    sendWithdrawTx(channelState: FullChannelState, minTx: MinimalTransaction): Promise<Result<TransactionResponseWithResult, ChainError>>;
    sendDepositTx(channelState: FullChannelState, sender: string, amount: string, assetId: string): Promise<Result<TransactionResponseWithResult, ChainError>>;
    on<T extends TransactionEvent>(event: T, callback: (payload: TransactionEventMap[T]) => void | Promise<void>, filter?: (payload: TransactionEventMap[T]) => boolean): void;
    once<T extends TransactionEvent>(event: T, callback: (payload: TransactionEventMap[T]) => void | Promise<void>, filter?: (payload: TransactionEventMap[T]) => boolean): void;
    off<T extends TransactionEvent>(event?: T): void;
    waitFor<T extends TransactionEvent>(event: T, timeout: number, filter?: (payload: TransactionEventMap[T]) => boolean): Promise<TransactionEventMap[T]>;
    private sendTxWithRetries;
    private sendTxAndParseResponse;
    private approveTokens;
    private sendDepositATx;
    private sendDepositBTx;
}
//# sourceMappingURL=ethService.d.ts.map