/** * Workbook-level check. * * Reads `xl/workbook.xml` as DOM (replacing the previous regex-based * approach, which missed namespaced elements like ``) and walks * every `` declaration to verify: * * - `sheetId` uniqueness (OOXML requires globally unique sheet IDs). * - `r:id` uniqueness and pointing to a worksheet-type relationship. * - `name` attribute presence and Excel's name constraints: * · 1–31 characters * · No characters in `\ / ? * [ ] :` * · Not repeated case-insensitively * - CT_Workbook child element ordering (ECMA-376 Part 1 §18.2.27). * Excel rejects files whose direct children of `` violate * the XSD sequence order. */ import type { ValidationContext } from "./context.js"; export declare function checkWorkbook(ctx: ValidationContext): void;