import { type NormalFormPlan } from "./normal-form.js"; import type { EntropyAuditCall, EntropyProposal, EntropySurfaceSnapshot, EntropyTraceInput } from "./types.js"; export declare const COMPILED_SURFACE_VERSION: 2; export declare const MAX_COMPILED_SURFACE_PROPOSALS = 256; export interface CompiledSurfaceOverlayEntry { ref: string; inputSchema: Record; baseSchemaDigest: string; } export interface CompiledSurfaceQuarantineEntry { ref: string; baseSchemaDigest: string; } export interface CompiledSurfaceAppliedProposal { kind: EntropyProposal["kind"]; ref: string; detail: string; } export interface CompiledSurfaceGateRecord { passed: boolean; beforeScore: number; afterScore: number; reasons: string[]; } export interface CompiledSurfaceFile { version: 1 | typeof COMPILED_SURFACE_VERSION; metricVersion: number; /** Legacy restrictions are retained only when reading version 1. Never enforced. */ actions: CompiledSurfaceOverlayEntry[]; quarantined: CompiledSurfaceQuarantineEntry[]; normalizations?: NormalFormPlan[]; applied: CompiledSurfaceAppliedProposal[]; gate: CompiledSurfaceGateRecord; evidenceDigest: string; } export declare const emptyCompiledSurface: () => CompiledSurfaceFile; export declare const compiledSurfaceEffectChanged: (before: CompiledSurfaceFile | undefined, after: CompiledSurfaceFile) => boolean; export declare const comparableCompiledSurfaceScore: (file: CompiledSurfaceFile | undefined, metricVersion: number) => number | undefined; export declare const schemaDigest: (schema: unknown) => string; export declare const effectiveSchemaFor: (_ref: string, liveSchema: unknown, _file?: CompiledSurfaceFile) => unknown; export declare const applyCompiledSurface: (live: EntropySurfaceSnapshot, _file?: CompiledSurfaceFile) => EntropySurfaceSnapshot; export declare const quarantinedRefNames: (_file?: CompiledSurfaceFile) => ReadonlySet; export declare const isQuarantinedRef: (_ref: string, _liveSchema: unknown, _file?: CompiledSurfaceFile) => boolean; export interface MergedCompiledSurface { file: CompiledSurfaceFile; droppedOverlays: number; droppedQuarantines: number; droppedNormalizations: number; } export declare const mergeCompiledSurfaces: (local: CompiledSurfaceFile | undefined, incoming: CompiledSurfaceFile, live: EntropySurfaceSnapshot) => MergedCompiledSurface; export interface ReplayViolation { ref: string; reason: string; } export declare const replaySuccessfulCalls: (surface: EntropySurfaceSnapshot, before: EntropySurfaceSnapshot, traces: readonly EntropyTraceInput[], touchedRefs: ReadonlySet, auditCalls?: readonly EntropyAuditCall[]) => ReplayViolation[]; export declare const replaySuccessfulCallsAsync: (surface: EntropySurfaceSnapshot, before: EntropySurfaceSnapshot, traces: readonly EntropyTraceInput[], touchedRefs: ReadonlySet, auditCalls?: readonly EntropyAuditCall[]) => Promise; //# sourceMappingURL=compiled-surface.d.ts.map