import type { Hex } from '@metamask/utils'; import type { TransactionControllerMessenger } from '../TransactionController.js'; import type { Layer1GasFeeFlow, TransactionMeta } from '../types.js'; export type UpdateLayer1GasFeeRequest = { layer1GasFeeFlows: Layer1GasFeeFlow[]; messenger: TransactionControllerMessenger; transactionMeta: TransactionMeta; }; /** * Updates the given transactionMeta with the layer 1 gas fee. * * @param request - The request to use when getting the layer 1 gas fee. * @param request.transactionMeta - The transaction to get the layer 1 gas fee for. * @param request.layer1GasFeeFlows - The layer 1 gas fee flows to search. * @param request.messenger - The messenger instance. */ export declare function updateTransactionLayer1GasFee(request: UpdateLayer1GasFeeRequest): Promise; /** * Get the layer 1 gas fee for a transaction. * * @param request - The request to use when getting the layer 1 gas fee. * @param request.layer1GasFeeFlows - The layer 1 gas fee flows to search. * @param request.transactionMeta - The transaction to get the layer 1 gas fee for. * @param request.messenger - The messenger instance. * @returns The layer 1 gas fee. */ export declare function getTransactionLayer1GasFee({ layer1GasFeeFlows, messenger, transactionMeta, }: UpdateLayer1GasFeeRequest): Promise; //# sourceMappingURL=layer1-gas-fee-flow.d.ts.map