import { type AdaptationPreferences } from './template-adaptation.ts'; import type { SkillGraph } from './graph.ts'; export declare const RESPONSES_PATH = "agent/template-responses.json"; export declare const QUESTIONS_PATH = "agent/template-questions.json"; export declare const INVENTORY_PATH = "onboarding/template-inventory.json"; export declare const INVENTORY_REVIEW = "agent/reviews/template-reference-review.json"; export type ReferenceInventory = { version: 1; selectionHash: string; evidence: Array<{ path: string; sha256: string; }>; pages: Array<{ key: string; url: string; sections: Array<{ id: string; label: string; role: string; mediaRole: string; rhythm: string; }>; }>; }; export type AdaptationQuestion = { id: string; kind: 'preferences' | 'content' | 'image' | 'representative'; question: string; proposalHash: string; suggested?: unknown; context?: unknown; }; export type AdaptationResponse = { id: string; proposalHash: string; operationId?: string; source: 'user-chat' | 'user-ui' | 'test-simulation'; instruction: string; value: unknown; }; /** New scaffolds opt in; managed upgrades do not rewrite customer policy or fabricate answers. */ export declare function adaptationCheckpointEnabled(root: string): boolean; export declare function checkpointPreferences(root: string): AdaptationPreferences | undefined; export declare function applyCheckpointGraph(root: string, graph: SkillGraph): void; export declare function inventoryFailures(root: string, requireReview?: boolean): string[]; export declare function adaptationQuestions(root: string, node: string, includeAnswered?: boolean): AdaptationQuestion[]; export declare function awaitAdaptation(root: string, node: string): string | undefined; export declare function requestedAdaptationRepair(root: string, node: string): { owner: string; instruction: string; } | undefined; export declare function submitAdaptationResponse(root: string, response: AdaptationResponse): void; export declare function imageCheckpointAnswer(root: string, id: string, hash: string): 'approve' | 'decline' | undefined; /** Scope responses to their consumers: later representative feedback cannot reopen direction. */ export declare function checkpointDependency(root: string, node: string): unknown; /** Derived queue is always current; it never rewrites facts or silently removes drafts. */ export declare function contentRefinementQueue(root: string): { version: number; selectionHash: string | null; items: { id: string; route: string; section: string; owner: string; status: "draft" | "ready" | "placeholder"; nextAction: string | undefined; decision: AdaptationResponse | null; }[]; };