import type { GasPriceManager } from "../handlers/index.js"; import type { Mempool } from "../mempool/index.js"; import type { BundlingMode, GasPriceParameters, SubmittedBundleInfo, UserOperationBundle } from "../types/index.js"; import { type Metrics } from "../utils/index.js"; import type { Hex } from "viem"; import type { AltoConfig } from "../createConfig.js"; import type { BundleManager } from "./bundleManager.js"; import type { Executor } from "./executor.js"; import type { SenderManager } from "./senderManager/index.js"; export declare class ExecutorManager { private readonly senderManager; private readonly config; private readonly executor; private readonly mempool; private readonly logger; private readonly metrics; private readonly gasPriceManager; private readonly bundleManager; private opsCount; private bundlingMode; private unWatch; private redisBlockCache; private currentlyHandlingBlock; private currentlyHandlingBlockNumber; constructor({ config, executor, mempool, metrics, gasPriceManager, senderManager, bundleManager }: { config: AltoConfig; executor: Executor; mempool: Mempool; metrics: Metrics; gasPriceManager: GasPriceManager; senderManager: SenderManager; bundleManager: BundleManager; }); start(): void; setBundlingMode(bundleMode: BundlingMode): Promise; autoScalingBundling(): Promise; private pollBlockWithRedis; startWatchingBlocks(): void; getBaseFee(): Promise; sendBundleToExecutor(userOpBundle: UserOperationBundle): Promise; stopWatchingBlocks(): void; private handleBlock; potentiallyResubmitBundle({ blockReceivedTimestamp, submittedBundle, networkGasPrice, networkBaseFee }: { blockReceivedTimestamp: number; submittedBundle: SubmittedBundleInfo; networkGasPrice: { maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; }; networkBaseFee: bigint; }): void; cancelBundle(submittedBundle: SubmittedBundleInfo): Promise; replaceBundle({ blockReceivedTimestamp, submittedBundle, networkGasPrice, networkBaseFee, reason }: { blockReceivedTimestamp: number; submittedBundle: SubmittedBundleInfo; networkGasPrice: GasPriceParameters; networkBaseFee: bigint; reason: "gas_price" | "stuck"; }): Promise; } //# sourceMappingURL=executorManager.d.ts.map