/** * @ksefuj/validator - Semantic validation implementation * * Business logic validation for KSeF FA(3) invoices that cannot * be expressed through XSD schema validation alone. * * Based on the official FA(3) information sheet (March 2026 edition). * All rules trace directly to specific sections in the constitution. */ import type { CurrencyRate, SemanticRule, ValidationAssertion, ValidationIssue, XmlDocument } from "./types.js"; export declare const semanticRules: SemanticRule[]; /** * Run all semantic validation checks on an XML document. * Returns both issues (errors/warnings) and assertions (what passed). * * @param doc - The XML document to validate * @param collectAssertions - Whether to collect positive assertions about what passed validation * @param currencyRates - Optional map of currency → NBP rate table for KursWaluty accuracy validation * @returns Object containing validation issues and assertions */ export declare function checkSemantics(doc: XmlDocument, collectAssertions?: boolean, currencyRates?: Record): { issues: ValidationIssue[]; assertions: ValidationAssertion[]; }; //# sourceMappingURL=semantic.d.ts.map