/** * Public entry point for the OOXML validator. * * Validates an xlsx package buffer against the OPC spec and Excel's * known opening invariants. See `types.ts` for the full catalog of * problem kinds. * * ```ts * const report = await validateXlsxBuffer(await wb.xlsx.writeBuffer()); * if (!report.ok) { * console.error(report.problems); * } * ``` * * The implementation is composed of independent checkers under * `check-*.ts` — each can be unit-tested in isolation. The entry point * orchestrates them with a shared `ValidationContext` that caches XML * parsing across checks. */ import type { OoxmlOrderingProblemKind, OoxmlOrderingValidationProblem, OoxmlProblemKind, OoxmlProblemSeverity, OoxmlValidateOptions, OoxmlValidationProblem, OoxmlValidationReport, OoxmlValidationStats } from "./types.js"; export type { OoxmlOrderingProblemKind, OoxmlOrderingValidationProblem, OoxmlProblemKind, OoxmlProblemSeverity, OoxmlValidateOptions, OoxmlValidationProblem, OoxmlValidationReport, OoxmlValidationStats }; /** * Validate an xlsx package. Returns a report with every detected * problem; `ok === true` when no error-severity problems were found. * * This function never throws — malformed input is surfaced as a * `xml-malformed` or similar problem kind. The only exception is if * `extractAll` fails to unzip the buffer (not a valid ZIP at all), in * which case the underlying archive error propagates. */ export declare function validateXlsxBuffer(xlsxBuffer: Uint8Array, options?: OoxmlValidateOptions): Promise;