import type { ContextSnapshot, InsightCandidate, ProactiveInsight } from './types.js'; export interface ClaimedRun { id: string; batchId: string; subscriptionId: string; scenarioKey: string; scenarioVersion: number; promptRevisionId?: string; attempt: number; } export declare function claimNextRun(owner: string, now?: Date, leaseSeconds?: number): ClaimedRun | null; export declare function eventIdsForBatch(batchId: string): string[]; export declare function saveSnapshot(batchId: string, content: Record, evidenceIds: string[], now?: Date): ContextSnapshot; export declare function attachSnapshot(runId: string, snapshotId: string): void; export declare function finishRun(input: { run: ClaimedRun; candidate?: InsightCandidate; valueScore?: number; rawOutput: string; modelRef?: string; }, now?: Date): ProactiveInsight | null; export declare function failRun(run: ClaimedRun, error: unknown, retryable: boolean, now?: Date): void; export declare function listInsights(limit?: number): ProactiveInsight[];