@fin.cx/einvoice
Version:
A TypeScript module for creating, manipulating, and embedding XML data within PDF files specifically tailored for electronic invoice (einvoice) packages.
19 lines (18 loc) • 573 B
TypeScript
import { BaseValidator } from './base.validator.js';
/**
* Factory to create the appropriate validator based on the XML format
*/
export declare class ValidatorFactory {
/**
* Creates a validator for the specified XML content
* @param xml XML content to validate
* @returns Appropriate validator instance
*/
static createValidator(xml: string): BaseValidator;
/**
* Detects the invoice format from XML content
* @param xml XML content to analyze
* @returns Detected invoice format
*/
private static detectFormat;
}