import type { JevRoutingEvidence, RoutingDigest, RoutingPolicy, RoutingPreregistration, RoutingTask } from './types.js'; export declare class RoutingContractError extends Error { readonly layer: 'admission' | 'schema' | 'semantic'; readonly details: readonly string[]; constructor(message: string, layer?: 'admission' | 'schema' | 'semantic', details?: readonly string[]); } export declare const ROUTING_SCHEMA_FILES: { readonly policy: "DecisionRoutingPolicy.v1.schema.json"; readonly task: "DecisionRoutingTask.v1.schema.json"; readonly receipt: "DecisionRouteReceipt.v1.schema.json"; readonly shadowReport: "DecisionRoutingShadowReport.v1.schema.json"; }; /** `jevEvidence` is the receipt schema's closed evidence definition, applied to raw Jev output. */ export type RoutingSchemaKind = keyof typeof ROUTING_SCHEMA_FILES | 'jevEvidence' | 'preregistration' | 'observation'; /** Floors below which no preregistration is accepted (#2620 review: n=2 per arm is not evidence). */ export declare const ROUTING_MINIMUM_OVERALL_N = 30; export declare const ROUTING_MINIMUM_SLICE_N = 10; export declare function routingDigest(value: unknown): RoutingDigest; export declare function compareRoutingKeys(a: string, b: string): number; /** Deep-freezes a structured clone so no caller or callback can widen a trusted value in place. */ export declare function frozenRoutingClone(value: T): T; export declare function checkRoutingSchema(kind: RoutingSchemaKind, value: unknown): void; /** Returns a deep-frozen copy; the digest covers candidates in canonical ID order, so it does not depend on input order. */ export declare function validateRoutingPolicy(value: unknown): { policy: RoutingPolicy; digest: RoutingDigest; }; /** Closed task schema plus semantic checks; unknown, missing or non-finite requirements fail closed. */ export declare function validateRoutingTask(value: unknown): RoutingTask; /** Closed evidence schema plus finiteness; NaN and Infinity cannot pass a JSON schema number check reliably. */ export declare function validateJevRoutingEvidence(value: unknown): JevRoutingEvidence; type PreregistrationFields = Omit; /** Freeze the paired task set, slices and every promotion threshold before any holdout access. */ export declare function freezeRoutingPreregistration(input: PreregistrationFields): RoutingPreregistration; /** A separately anchored digest is required, as for evaluatePreregisteredBinaryBenchmark. */ export declare function verifyRoutingPreregistration(value: unknown, trustedDigest: RoutingDigest): RoutingPreregistration; export {}; //# sourceMappingURL=contract.d.ts.map