import type Web3 from "web3"; import type { TransactionConfig } from "web3-core"; /** * Estimate the amount of gas that will be needed to submit a transaction (tx) * * The underlying RPC `eth_estimateGas` will check the balance of the sender, * this means that even though the call doesn't consume any gas, * the `from` address must have enough gas to execute the tx * * @async * @function estimateGas * @param {TransactionConfig} tx A tx object * @param {Web3} web3 * @throws {NightfallSdkError} Web3 errors * @returns {Promise} */ export declare function estimateGas(tx: TransactionConfig, web3: Web3): Promise; /** * Estimate gas price * * @async * @function estimateGasPrice * @param {Web3} web3 * @throws {NightfallSdkError} Web3 errors * @returns {Promise} */ export declare function estimateGasPrice(web3: Web3): Promise;