import type { StateOverrideSet, UserOperationStruct } from "../account/index.js"; import type { SimulationType } from "../account/index.js"; import type { IBundler } from "./interfaces/IBundler.js"; import type { Bundlerconfig, GasFeeValues, UserOpByHashResponse, UserOpGasResponse, UserOpReceipt, UserOpResponse, UserOpStatus } from "./utils/Types.js"; /** * This class implements IBundler interface. * Implementation sends UserOperation to a bundler URL as per ERC4337 standard. * Checkout the proposal for more details on Bundlers. */ export declare class Bundler implements IBundler { private bundlerConfig; UserOpReceiptIntervals: { [key in number]?: number; }; UserOpWaitForTxHashIntervals: { [key in number]?: number; }; UserOpReceiptMaxDurationIntervals: { [key in number]?: number; }; UserOpWaitForTxHashMaxDurationIntervals: { [key in number]?: number; }; private provider; constructor(bundlerConfig: Bundlerconfig); getBundlerUrl(): string; /** * @param userOpHash * @description This function will fetch gasPrices from bundler * @returns Promise */ estimateUserOpGas(_userOp: UserOperationStruct, stateOverrideSet?: StateOverrideSet): Promise; /** * * @param userOp * @description This function will send signed userOp to bundler to get mined on chain * @returns Promise */ sendUserOp(_userOp: UserOperationStruct, simulationParam?: SimulationType): Promise; /** * * @param userOpHash * @description This function will return userOpReceipt for a given userOpHash * @returns Promise */ getUserOpReceipt(userOpHash: string): Promise; /** * * @param userOpHash * @description This function will return userOpReceipt for a given userOpHash * @returns Promise */ getUserOpStatus(userOpHash: string): Promise; /** * * @param userOpHash * @description this function will return UserOpByHashResponse for given UserOpHash * @returns Promise */ getUserOpByHash(userOpHash: string): Promise; /** * @description This function will return the gas fee values */ getGasFeeValues(): Promise; static create(config: Bundlerconfig): Promise; } //# sourceMappingURL=Bundler.d.ts.map