function estimateTransactionCost( provider: Provider, tx: TransactionRequest,): Promise<BigNumber>;
let provider: Provider;
let tx: TransactionRequest;
let returnType: Promise<BigNumber>;