import type { EthGasPriceEstimate, GasFeeEstimates, LegacyGasPriceEstimate } from '@metamask/gas-fee-controller'; import type { GasFeeState } from '@metamask/gas-fee-controller'; import type { TransactionControllerMessenger } from '../TransactionController.js'; import type { FeeMarketGasFeeEstimates, GasPriceGasFeeEstimates, LegacyGasFeeEstimates } from '../types.js'; import type { GasFeeFlow, TransactionMeta } from '../types.js'; type MergeGasFeeEstimatesRequest = { gasFeeControllerEstimates: GasFeeEstimates | LegacyGasPriceEstimate | EthGasPriceEstimate; transactionGasFeeEstimates: FeeMarketGasFeeEstimates | LegacyGasFeeEstimates | GasPriceGasFeeEstimates; }; /** * Returns the first gas fee flow that matches the transaction. * * @param transactionMeta - The transaction metadata to find a gas fee flow for. * @param gasFeeFlows - The gas fee flows to search. * @param messenger - The messenger instance. * @returns The first gas fee flow that matches the transaction, or undefined if none match. */ export declare function getGasFeeFlow(transactionMeta: TransactionMeta, gasFeeFlows: GasFeeFlow[], messenger: TransactionControllerMessenger): GasFeeFlow | undefined; /** * Merge the gas fee estimates from the gas fee controller with the gas fee estimates from a transaction. * * @param request - Data required to merge gas fee estimates. * @param request.gasFeeControllerEstimates - Gas fee estimates from the GasFeeController. * @param request.transactionGasFeeEstimates - Gas fee estimates from the transaction. * @returns The merged gas fee estimates. */ export declare function mergeGasFeeEstimates({ gasFeeControllerEstimates, transactionGasFeeEstimates, }: MergeGasFeeEstimatesRequest): GasFeeState['gasFeeEstimates']; export {}; //# sourceMappingURL=gas-flow.d.ts.map