/** Owns in-flight prompt optimization traces and their run-indexed enrichment lifecycle. * Each runtime has its own store; persistence remains with registered optimization hooks. */ import type { ExecutionTrace, ScoreSignal } from "../prompt-optimization.js"; export declare class ActivePromptTraces { private activeTraces; private runToTraces; enrichTrace(runId: string, signal: ScoreSignal): void; getActiveTrace(runId: string): ExecutionTrace | undefined; getActiveTracesForRun(runId: string): ExecutionTrace[]; deleteActiveTrace(runId: string): void; deleteActiveTraceById(traceId: string): void; private static readonly ACTIVE_TRACE_TTL_MS; private activeTraceTtlPurgeCounter; purgeStaleActiveTraces(): void; private maybeRunActiveTraceTTLPurge; record(trace: ExecutionTrace): void; }