/** * @ksefuj/validator - Strict XML checks (raw text) * * KSeF API 2.4.0 tightened XML verification. Per the MF page "Weryfikacja faktury" an invoice * is rejected when it: * - contains XML processing instructions, * - contains Unicode characters discouraged by the W3C XML spec (ranges listed below), * - starts with a UTF-8 BOM, * - has an XML declaration that names an encoding other than UTF-8. * Production enforcement starts on 2026-10-19; until then KSeF only returns X-System-Warning. * * These constructs can be dropped or normalised by XML parsers, so the checks run on the raw * input string rather than on a parsed document. * * Sources: * https://github.com/CIRFMF/ksef-api/blob/main/faktury/weryfikacja-faktury.md * https://github.com/CIRFMF/ksef-api/blob/main/api-changelog.md (version 2.4.0) * https://github.com/CIRFMF/ksef-api/issues/718 (enforcement date moved to 2026-10-19) */ import type { ValidationIssue } from "./types.js"; export declare const KSEF_XML_RULES_URL = "https://github.com/CIRFMF/ksef-api/blob/main/faktury/weryfikacja-faktury.md"; /** Date from which KSeF PROD rejects these constructs (issue #718). */ export declare const KSEF_STRICT_XML_ENFORCEMENT_DATE = "2026-10-19"; /** Individually reported findings per code; the rest are summarised in one issue. */ export declare const MAX_REPORTED_FINDINGS = 20; export declare function checkStrictXml(xml: string): ValidationIssue[]; //# sourceMappingURL=xml-strictness.d.ts.map