import { type SavedWorkflowRevisionDraft } from './library-schema.js'; import type { LoadedAuthorizedV3Run } from './run-envelope.js'; import { type V3DistillationCompiledBodyV1 } from './distillation-schema.js'; export interface CompileV3DistillationProposalInput { /** Exact, host-built revision draft from one digest-validated source read. */ baselineRevision: unknown; /** Untrusted model output. */ suggestion: unknown; } export interface V3DistillationModelFieldV1 { /** Opaque within this one minimized worker input. */ ref: `field-${string}`; /** Host-owned numeric pointer; suggestions copy it verbatim. */ path: string; category: 'goal' | 'instruction'; nodeOrdinal: number; text: string; } /** Canonical exact-save baseline from one verified in-memory source read. */ export declare function buildV3DistillationBaseline(loaded: LoadedAuthorizedV3Run): SavedWorkflowRevisionDraft; /** Minimal model-visible execution text; no ids, topology, gates, or host input. */ export declare function enumerateV3DistillationModelFields(baselineRevision: unknown): V3DistillationModelFieldV1[]; export declare function computeV3DistillationBaselineSha256(baselineRevision: unknown): string; /** Strict host-side privacy predicate shared by source and display-name gates. */ export declare function containsUnsafeV3DistillationReusableText(text: string): boolean; /** Privacy/eligibility preflight that must run before model-visible fields leave the host. */ export declare function assertV3DistillationBaselineSafe(baselineRevision: unknown): void; export declare function compileV3DistillationProposal(input: CompileV3DistillationProposalInput): V3DistillationCompiledBodyV1; /** * Re-derive every model-selected candidate from the authenticated baseline, * run the current deterministic compiler again, and require a byte-canonical * match. Approval therefore never trusts stored spans, hashes, summaries, or * revision bytes merely because they satisfy the storage schema. */ export declare function recompileV3DistillationProposal(baselineRevision: unknown, compiledBody: unknown): V3DistillationCompiledBodyV1; //# sourceMappingURL=distillation-compiler.d.ts.map