/** * Canonical JSON: object keys codepoint-sorted at every depth, arrays in order, compact. * `undefined` follows `JSON.stringify` exactly: an `undefined` OBJECT member is dropped, while an * `undefined` ARRAY entry becomes `null` (an array keeps its length). Two structurally equal values * serialize to the same bytes regardless of the key order they were built in. * * @param {unknown} value * @returns {string} */ export function canonicalJson(value: unknown): string; /** * The payload identity of ONE sample: `sha256:` over the canonical JSON of exactly the five * payload fields (id, description, kind, steering_type, signals) — never a subset, never an * extra (a `payload_hash` already stamped on the sample is NOT part of its own identity). * * @param {import('zod').input} sample * @returns {string} */ export function samplePayloadHash(sample: import("zod").input): string; export const EvalSignalsSchema: z.ZodObject<{ phase: z.ZodOptional; tool: z.ZodOptional; files: z.ZodOptional>; content: z.ZodOptional; }, "strict", z.ZodTypeAny, { content?: string | undefined; tool?: string | undefined; files?: string[] | undefined; phase?: string | undefined; }, { content?: string | undefined; tool?: string | undefined; files?: string[] | undefined; phase?: string | undefined; }>; export const EvalSampleSchema: z.ZodObject<{ id: z.ZodString; description: z.ZodString; kind: z.ZodEnum<["good", "bad"]>; steering_type: z.ZodString; signals: z.ZodObject<{ phase: z.ZodOptional; tool: z.ZodOptional; files: z.ZodOptional>; content: z.ZodOptional; }, "strict", z.ZodTypeAny, { content?: string | undefined; tool?: string | undefined; files?: string[] | undefined; phase?: string | undefined; }, { content?: string | undefined; tool?: string | undefined; files?: string[] | undefined; phase?: string | undefined; }>; }, "strict", z.ZodTypeAny, { id: string; description: string; kind: "good" | "bad"; steering_type: string; signals: { content?: string | undefined; tool?: string | undefined; files?: string[] | undefined; phase?: string | undefined; }; }, { id: string; description: string; kind: "good" | "bad"; steering_type: string; signals: { content?: string | undefined; tool?: string | undefined; files?: string[] | undefined; phase?: string | undefined; }; }>; export const ImportEvalCorpusSchema: z.ZodObject<{ name: z.ZodString; samples: z.ZodArray; steering_type: z.ZodString; signals: z.ZodObject<{ phase: z.ZodOptional; tool: z.ZodOptional; files: z.ZodOptional>; content: z.ZodOptional; }, "strict", z.ZodTypeAny, { content?: string | undefined; tool?: string | undefined; files?: string[] | undefined; phase?: string | undefined; }, { content?: string | undefined; tool?: string | undefined; files?: string[] | undefined; phase?: string | undefined; }>; }, "strict", z.ZodTypeAny, { id: string; description: string; kind: "good" | "bad"; steering_type: string; signals: { content?: string | undefined; tool?: string | undefined; files?: string[] | undefined; phase?: string | undefined; }; }, { id: string; description: string; kind: "good" | "bad"; steering_type: string; signals: { content?: string | undefined; tool?: string | undefined; files?: string[] | undefined; phase?: string | undefined; }; }>, "many">; }, "strict", z.ZodTypeAny, { name: string; samples: { id: string; description: string; kind: "good" | "bad"; steering_type: string; signals: { content?: string | undefined; tool?: string | undefined; files?: string[] | undefined; phase?: string | undefined; }; }[]; }, { name: string; samples: { id: string; description: string; kind: "good" | "bad"; steering_type: string; signals: { content?: string | undefined; tool?: string | undefined; files?: string[] | undefined; phase?: string | undefined; }; }[]; }>; /** The shape of a payload hash: `sha256:` + 64 lowercase hex digits. */ export const PAYLOAD_HASH_RE: RegExp; import { z } from 'zod'; //# sourceMappingURL=eval-sample.d.ts.map