import { AgentManager } from '../tools/agent/index.js'; import type { ConfigManager } from '../config/manager.js'; import type { SharedSessionBroker } from '../control-plane/index.js'; import type { AutomationJob } from './jobs.js'; import type { AutomationRun } from './runs.js'; interface AutomationReconcileContext { readonly configManager: ConfigManager; readonly sessionBroker: SharedSessionBroker; readonly agentStatusProvider: Pick; readonly jobs: Map; readonly runs: Map; readonly saveJobs: () => Promise; readonly saveRuns: () => Promise; readonly syncExecutionRoute: (job: AutomationJob, run: AutomationRun) => Promise; readonly syncRunToRuntime: (run: AutomationRun, source: string) => void; readonly syncJobToRuntime: (job: AutomationJob, source: string) => void; readonly emitRunCompleted: (job: AutomationJob, run: AutomationRun, outcome: 'success' | 'partial' | 'failed' | 'cancelled') => void; readonly emitRunFailed: (job: AutomationJob, run: AutomationRun, error: string, retryable: boolean) => void; readonly emitJobAutoDisabled: (job: AutomationJob, reason: string) => void; readonly maybeDeliverRun: (job: AutomationJob, run: AutomationRun) => void; readonly scheduleFailureFollowUp: (job: AutomationJob, run: AutomationRun) => void; readonly applyFailureToJob: (job: AutomationJob, timestamp: number, countRun?: boolean) => AutomationJob; readonly pruneRunHistory: () => void; readonly cancelTimer: (jobId: string) => void; } export declare function reconcileAutomationActiveRuns(context: AutomationReconcileContext): void; export {}; //# sourceMappingURL=manager-runtime-reconcile.d.ts.map