import type { NetworkData } from '@dynamic-labs-sdk/client'; import type { EvmTransactionFeeData, EvmTransactionToSimulate } from '../../transactionSimulation.types'; type CalculateEvmTransactionFeeParams = { nativeTokenPriceUsd?: number; networkData: NetworkData; transaction: EvmTransactionToSimulate; }; /** * Calculates the estimated fee for an EVM transaction. * * This function estimates gas usage and calculates the total transaction fee * using either legacy gas pricing or EIP-1559 pricing. The fee is returned * in both native units (wei) and human-readable format (ETH). * * @param params.transaction - The transaction to estimate fees for. * @param params.networkData - Network configuration for RPC connection. * @param params.nativeTokenPriceUsd - Optional USD price of the native token for fee conversion. * @returns Fee data including gas estimates and human-readable amounts. * @throws {FeeEstimationFailedError} If gas estimation or fee retrieval fails. * @not-instrumented */ export declare const calculateEvmTransactionFee: ({ transaction, networkData, nativeTokenPriceUsd, }: CalculateEvmTransactionFeeParams) => Promise; export {}; //# sourceMappingURL=calculateEvmTransactionFee.d.ts.map