afip.ts-fork-ssl-fix
Version:
Afip typescript SDK
15 lines (14 loc) • 461 B
TypeScript
/**
* Parser based on node-xml2js package (https://github.com/Leonidas-from-XIV/node-xml2js).
*/
export declare class Parser {
static options: {
normalizeTags: boolean;
normalize: boolean;
explicitArray: boolean;
attrkey: string;
tagNameProcessors: ((key: string) => string)[];
};
static xmlToJson<T = Record<string, any>>(xml: string): Promise<T>;
static jsonToXml(obj: Record<string, any>): string;
}