import { Logger } from 'pino'; import { RebalancerConfig } from '../config/RebalancerConfig.js'; import type { ExternalBridgeRegistry } from '../interfaces/IExternalBridge.js'; import { type MonitorEvent } from '../interfaces/IMonitor.js'; import type { IRebalancer } from '../interfaces/IRebalancer.js'; import type { IStrategy, StrategyRoute } from '../interfaces/IStrategy.js'; import { Metrics } from '../metrics/Metrics.js'; import type { IActionTracker } from '../tracking/IActionTracker.js'; import { InflightContextAdapter } from '../tracking/InflightContextAdapter.js'; /** * Result of a rebalancing cycle. * executedCount/failedCount: Counts from movable_collateral execution ONLY */ export interface CycleResult { balances: Record; proposedRoutes: StrategyRoute[]; executedCount: number; failedCount: number; } export interface RebalancerOrchestratorDeps { strategy: IStrategy; actionTracker: IActionTracker; inflightContextAdapter: InflightContextAdapter; rebalancerConfig: RebalancerConfig; logger: Logger; rebalancers: IRebalancer[]; externalBridgeRegistry?: Partial; metrics?: Metrics; } export declare class RebalancerOrchestrator { private readonly strategy; private readonly actionTracker; private readonly inflightContextAdapter; private readonly rebalancerConfig; private readonly logger; private readonly rebalancersByType; private readonly externalBridgeRegistry?; private readonly metrics?; constructor(deps: RebalancerOrchestratorDeps); /** * Execute a single rebalancing cycle. * Processes monitor event, evaluates strategy, and executes routes. */ executeCycle(event: MonitorEvent): Promise; /** * Sync action tracker with current chain state. */ private syncActionTracker; /** * Get inflight context for strategy decision-making */ private getInflightContext; private executeWithTracking; private executeRoutes; } //# sourceMappingURL=RebalancerOrchestrator.d.ts.map