import { type Static } from '@sinclair/typebox'; import type { PDRuntimeAdapter } from '../runtime-protocol.js'; export declare const CorrectionObserverPayloadSchema: import("@sinclair/typebox").TObject<{ parentSessionId: import("@sinclair/typebox").TString; workspaceDir: import("@sinclair/typebox").TString; keywordStoreSummary: import("@sinclair/typebox").TObject<{ totalKeywords: import("@sinclair/typebox").TNumber; terms: import("@sinclair/typebox").TArray>; }>; recentMessages: import("@sinclair/typebox").TArray; trajectoryHistory: import("@sinclair/typebox").TArray>; }>; export type CorrectionObserverPayload = Static; export declare const CorrectionObserverOutputV1Schema: import("@sinclair/typebox").TObject<{ updated: import("@sinclair/typebox").TBoolean; updates: import("@sinclair/typebox").TOptional, import("@sinclair/typebox").TLiteral<"update">, import("@sinclair/typebox").TLiteral<"remove">]>; weight: import("@sinclair/typebox").TOptional; falsePositiveRate: import("@sinclair/typebox").TOptional; reasoning: import("@sinclair/typebox").TString; }>>>; fpTerms: import("@sinclair/typebox").TOptional>; fpAnalysisStatus: import("@sinclair/typebox").TOptional, import("@sinclair/typebox").TLiteral<"skipped">]>>; summary: import("@sinclair/typebox").TString; }>; export type CorrectionObserverOutputV1 = Static; export interface CorrectionObserverDeps { readonly runtimeAdapter: PDRuntimeAdapter; } export interface CorrectionObserverOptions { readonly timeoutMs?: number; readonly agentId?: string; } export declare class CorrectionObserver { /** * PRI-633: base-layer system prompt (role declaration). Previously the * first line of buildPrompt's message; now delivered via the system channel. */ static readonly SYSTEM_PROMPT = "You are a correction keyword optimizer."; private readonly runtimeAdapter; private readonly timeoutMs; private readonly agentId; constructor(deps: CorrectionObserverDeps, options?: CorrectionObserverOptions); /** * Replicates prompt construction from correctionObserverWorkflowSpec * (PRI-633: the role declaration moved to SYSTEM_PROMPT / the system channel; * this message carries only task data and protocol rules). */ static buildPrompt(payload: CorrectionObserverPayload): string; /** * Run the simplified one-shot Correction Observer. */ run(input: CorrectionObserverPayload): Promise; } //# sourceMappingURL=correction-observer.d.ts.map