import { z } from "zod"; import { type JsonValue } from "@actuarial-ts/core"; import { type HistoricalSourceMapping } from "./historyMapping.js"; export declare const REVIEW_SOURCE_DECODING_CONTRACT_VERSION: "actuarial-review-source-decoding/1"; export declare const REVIEW_SOURCE_DECODING_LIMITS: Readonly<{ maximumCharacters: 64000000; maximumRows: 1000000; }>; export type ReviewSourcePath = readonly (string | number)[]; export type ReviewSourceDecoding = { readonly kind: "json-path"; readonly path: ReviewSourcePath; } | { readonly kind: "historical-csv"; readonly mapping: HistoricalSourceMapping; }; export declare const reviewSourcePathSchema: z.ZodArray, "many">; export declare const reviewSourceDecodingSchema: z.ZodType; export interface DecodedReviewSource { readonly contractVersion: typeof REVIEW_SOURCE_DECODING_CONTRACT_VERSION; readonly value: JsonValue; readonly evidence: { readonly kind: "json-path"; } | { readonly kind: "historical-csv"; readonly mappingId: string; readonly mappingVersion: string; readonly inputRows: number; readonly acceptedRows: number; readonly rejectedRows: 0; }; } /** Own-member traversal only. A path declares the exact compared input, never code to execute. */ export declare function reviewSourceValueAt(value: unknown, path: ReviewSourcePath): unknown; /** Decodes supplied text; performs no I/O and does not authenticate its source. */ export declare function decodeReviewSource(input: { readonly text: string; readonly decoding: ReviewSourceDecoding; readonly limits: { readonly maximumCharacters: number; readonly maximumRows: number; }; }): DecodedReviewSource; //# sourceMappingURL=reviewSourceDecoding.d.ts.map