/** * Pre-compile validation of a DocumentSpec. * * Two jobs: * 1. Shape/referential checks for the spec subset whose emitters have shipped. * 2. Loud rejection of declared-but-not-yet-implemented spec features. The * type surface covers the full add-docx-generation change; emitters land * in phases, and a spec feature without an emitter must fail compilation * with a typed error naming the feature and its path — never be silently * dropped (scenario SDX-GEN-003). * * Shipped so far: formatted text/tab/break runs, five-part PAGE/NUMPAGES * fields, paragraph formatting, named styles + styles.xml, multi-section * documents with per-section page setup, page numbering, break types, * default/first/even headers and footers, tables (grid, spans, vertical * merges, cell decoration, nesting), multi-level numbering with w:numPr * list references, and drafting notes compiled to anchored comments (body * story only — header/footer paragraphs cannot carry notes). * * Every declared feature now has an emitter; the loud-rejection contract * (SDX-GEN-003) lives on as runtime guards against unrecognized block and * inline kinds, which protect callers handing in JSON that the TypeScript * surface never saw. */ import type { DocumentSpec } from './types.js'; export declare function validateSpec(spec: DocumentSpec): void; //# sourceMappingURL=validate-spec.d.ts.map