export type XMLElementAttrs = Record; export type XMLElement = string | { children: XMLElement[]; tagName: string; attrs: XMLElementAttrs; }; export declare function xmlToJSON(str: string): string | XMLElementsJson; export type XMLElementsJson = { attrs?: XMLElementAttrs; [key: string]: XMLElementsJson | Record | undefined; };