import { type DocProblem } from './errors.js'; export declare const CHECKS_DIALECT = "org-checks-v1"; export type Check = { type: 'value_type'; is: 'integer'; } | { type: 'files_match_evidence'; } | { type: 'value_matches_chain'; } | { type: 'files_in_module'; } | { type: 'unique_across_sheets'; }; export declare const CHECK_TYPES: string[]; /** Every reason the check list is invalid (all of them); empty when it is supported. */ export declare function validateChecks(checks: unknown, where?: string): DocProblem[]; /** Throws a DocError on an unknown check type or parameter, naming where it is. */ export declare function assertSupportedChecks(checks: unknown, where?: string): void; export interface CheckResult { answers: number; /** Answers failing at least one check, with the failing checks named. */ flagged: { sheet: string; q: string; failed: { check: string; detail: string; }[]; }[]; /** Failures of checks over the whole document (a copied sheet). */ doc_level: { check: string; detail: string; }[]; by_check: Record; } /** * Evaluates the checks over a document body (the version a consumer reads). Total: any JSON body gives a * result; an answer that is not an object fails every per-answer check rather than throwing. */ export declare function runChecks(checks: Check[], content: unknown): CheckResult; //# sourceMappingURL=checks.d.ts.map