import { JsonRpcProvider } from 'ethers'; import { CoinAmount, Native } from '../../types'; /** * Fetch the current gas price estimate. Supports both EIP-1559 and non-EIP1559 chains * @param {JsonRpcProvider} provider - The JSON RPC provider used to fetch fee data * @param {Native} nativeToken - The native token of the chain. Gas prices will be denominated in this token * @returns {CoinAmount | null} - The gas price in the smallest denomination of the chain's currency, * or null if no gas price is available */ export declare const fetchGasPrice: (provider: JsonRpcProvider, nativeToken: Native) => Promise | null>; /** * Calculate the gas fee from the gas price and gas units used for the transaction * * @param {CoinAmount} gasPrice - The price of gas * @param {BigNumber} gasEstimate - The total gas units that will be used for the transaction * @returns - The cost of the transaction in the gas token's smallest denomination (e.g. WEI) */ export declare const calculateGasFee: (hasSecondaryFees: boolean, gasPrice: CoinAmount, gasEstimate: bigint) => CoinAmount;