UNPKG

@nodecfdi/cfdi-cleaner

Version:

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

17 lines (16 loc) 743 B
import { type Document } from '@nodecfdi/cfdi-core'; import type ExcludeList from '#src/exclude_list'; import XmlDocumentCleaners from '#src/xml_document_cleaners'; import XmlStringCleaners from '#src/xml_string_cleaners'; export default class Cleaner { private _stringCleaners; private _xmlCleaners; constructor(stringCleaners?: XmlStringCleaners | null, xmlDocumentCleaners?: XmlDocumentCleaners | null); static staticClean(xml: string): string; exclude(excludeList: ExcludeList): void; cleanString(xml: string): string; cleanDocument(document: Document): void; cleanStringToDocument(xml: string): Document; cleanStringToString(xml: string): string; protected createDocument(xml: string): Document; }