UNPKG

@nodecfdi/cfdi-cleaner

Version:

Librería para limpiar comprobantes fiscales digitales v3.3 y v4.0

26 lines (25 loc) 1.2 kB
import { type Document } from '@nodecfdi/cfdi-core'; import XmlAttributeMethods from '#src/mixins/xml_attribute_methods'; import XmlNamespaceMethods from '#src/mixins/xml_namespace_methods'; import { type XmlDocumentCleanerInterface } from '#src/types'; declare const SetKnownSchemaLocations_base: import("ts-mixer/dist/types/types").Class<any[], XmlNamespaceMethods & XmlAttributeMethods, typeof XmlNamespaceMethods & typeof XmlAttributeMethods>; export default class SetKnownSchemaLocations extends SetKnownSchemaLocations_base implements XmlDocumentCleanerInterface { /** * List of known namespace # version xsd locations as key value map * @see https://github.com/phpcfdi/sat-ns-registry */ private static readonly KNOWN_NAMESPACES; /** * Pairs of key-value of namespace and version to XSD locations * Key: namespace#version * Value: location * @returns Record */ static getKnowNamespaces(): Record<string, string>; clean(document: Document): void; private cleanNodeAttribute; private obtainVersionOfNamespace; private obtainAttributeValueFromFirstNodeOfNamespace; private obtainLocationForNamespaceVersion; } export {};