import type { Hex } from '@metamask/utils'; import type { TransactionControllerMessenger } from '../TransactionController.js'; import type { GasFeeFlow, GasFeeFlowRequest, GasFeeFlowResponse, TransactionMeta } from '../types.js'; /** * Implementation of a gas fee flow that randomises the last digits of gas fee estimations */ export declare class RandomisedEstimationsGasFeeFlow implements GasFeeFlow { #private; matchesTransaction({ transactionMeta, messenger, }: { transactionMeta: TransactionMeta; messenger: TransactionControllerMessenger; }): boolean; getGasFees(request: GasFeeFlowRequest): Promise; } /** * Randomises the least significant digits of a decimal gas fee value and converts it to a hexadecimal Wei value. * * This function preserves the more significant digits while randomizing only the least significant ones, * ensuring that fees remain close to the original estimation while providing randomisation. * The randomisation is performed in Wei units for more precision. * * @param gweiDecimalValue - The original gas fee value in Gwei (decimal) * @param numberOfDigitsToRandomizeAtTheEnd - The number of least significant digits to randomise * @param preservedNumberOfDigits - The number of most significant digits to preserve * @returns The randomised value converted to Wei in hexadecimal format */ export declare function randomiseDecimalGWEIAndConvertToHex(gweiDecimalValue: string | number, numberOfDigitsToRandomizeAtTheEnd: number, preservedNumberOfDigits: number): Hex; //# sourceMappingURL=RandomisedEstimationsGasFeeFlow.d.ts.map