/** * ADF constraint validator. * * Checks metric entries against their ceilings and produces * a structured evidence report. */ import type { AdfDocument, ConstraintResult, WeightSummary, EvidenceResult } from './types'; /** * Validate all metric constraints in an ADF document. * * For each metric entry, compares value against ceiling: * - value < ceiling → pass * - value === ceiling → warn (at boundary) * - value > ceiling → fail * * @param doc - Parsed ADF document * @param context - Optional external metric overrides (e.g., actual LOC counts) * @param module - Path of the source module this document was loaded from, when known. * Stamped onto each ConstraintResult for failure attribution (e.g. `charter adf suggest`). */ export declare function validateConstraints(doc: AdfDocument, context?: Record, module?: string): EvidenceResult; /** * Compute per-entry ConstraintResults for a single document's METRICS * sections, without the aggregate weightSummary/failCount/warnCount wrapper. * Shared by validateConstraints and evidence.ts's per-module attribution * path, so validating N modules doesn't also compute (and discard) N * redundant weight summaries and pass/fail counts. */ export declare function computeConstraints(doc: AdfDocument, context?: Record, module?: string): ConstraintResult[]; /** * Count sections by weight category. */ export declare function computeWeightSummary(doc: AdfDocument): WeightSummary; //# sourceMappingURL=validator.d.ts.map