/** * @ksefuj/validator — KSeF FA(3) XML validation * * Three-layer validation architecture: * 1. XSD schema validation (via libxml2-wasm) * 2. Semantic rules that XSD can't express (per official MF FA(3) information sheet) * 3. Additional checks beyond the spec: tax calculations, NBP rates, IBAN format */ import type { ValidateOptions, ValidationIssue, ValidationResult } from "./types.js"; /** * Validate a KSeF FA(3) XML string. * Returns structured validation result with issues and assertions. * NEVER throws - all errors are returned as ValidationResult. * * @param xml - The XML string to validate * @param options - Validation options * @returns Comprehensive validation result */ export declare function validate(xml: string, options?: ValidateOptions): Promise; /** * Backward compatibility exports (deprecated) */ export type { ValidationResult, ValidationIssue, ValidateOptions }; export type { ValidationAssertion, ValidationMetadata, IssueCode, IssueDomain, IssueSeverity, IssueContext, IssueLocation, FixSuggestion, FixType, } from "./types.js"; export { hasErrors, hasWarnings } from "./types.js"; export { getErrorDefinition, getFixSuggestions, isKnownErrorCode } from "./error-codes.js"; //# sourceMappingURL=validate.d.ts.map