import type { FetchGasFeeEstimateOptions, GasFeeState } from '@metamask/gas-fee-controller'; import type { Hex } from '@metamask/utils'; import type { TransactionControllerMessenger } from '../TransactionController.js'; import type { FeeMarketGasFeeEstimateForLevel, SavedGasFees, TransactionParams, TransactionMeta, GasFeeFlow } from '../types.js'; export type UpdateGasFeesRequest = { eip1559: boolean; gasFeeFlows: GasFeeFlow[]; getGasFeeEstimates: (options: FetchGasFeeEstimateOptions) => Promise; getSavedGasFees: (transactionMeta: TransactionMeta) => SavedGasFees | undefined; messenger: TransactionControllerMessenger; txMeta: TransactionMeta; }; export type GetGasFeeRequest = UpdateGasFeesRequest & { initialParams: TransactionParams; savedGasFees?: SavedGasFees; suggestedGasFees: SuggestedGasFees; }; type SuggestedGasFees = { maxFeePerGas?: string; maxPriorityFeePerGas?: string; gasPrice?: string; /** * Whether the suggested fee was derived from a specific estimate level, * such as `low`/`medium`/`high`. This is `false` for estimate types that * do not support per-level pricing, such as a flat `eth_gasPrice` value, * or when the gas fee flow failed and a raw RPC fallback was used. */ isEstimateLevelApplied?: boolean; low?: FeeMarketGasFeeEstimateForLevel; }; /** * Update the gas fee properties of the provided transaction meta. * * @param request - The request object. */ export declare function updateGasFees(request: UpdateGasFeesRequest): Promise; /** * Convert GWEI from decimal string to WEI as hex string. * * @param value - The GWEI value as a decimal string. * @returns The WEI value in hex. */ export declare function gweiDecimalToWeiHex(value: string): Hex; /** * Converts a value from Gwei decimal representation to Wei decimal representation * * @param gweiDecimal - The value in Gwei as a string or number * @returns The value in Wei as a string * * @example * // Convert 1.5 Gwei to Wei * gweiDecimalToWeiDecimal("1.5") * // Returns "1500000000" */ export declare function gweiDecimalToWeiDecimal(gweiDecimal: string | number): string; export {}; //# sourceMappingURL=gas-fees.d.ts.map