/** * DocxIR invariants. * * Not authoring checks — the schema validators already ran. These guard the * contract the IR promises adapters: resolved colours, integral twip geometry, * resolved resource and style references, paired bookmark and comment ranges, * note references that point at a note that exists. * * A violation is a compiler bug, so it is an error, not a warning. */ import { type DocxIR } from './types'; export interface IrViolation { path: string; message: string; } export declare function validateDocxIr(ir: DocxIR): IrViolation[]; /** Throw on the first invariant violation. Used by tests and debug builds. */ export declare function assertValidDocxIr(ir: DocxIR): void; //# sourceMappingURL=validation.d.ts.map