/** * Normalizer callback type for {@link xmlToObject}. * Called for each child element node during XML-to-object conversion. * @param obj - the parent object being built * @param child - the child XML element to process * @param parse - recursive parser (calls xmlToObject with the same normalizer) */ export type XMLNormalizer = (obj: Record, child: Element, parse: (node: Element) => Record) => void; /** * Convert an XML element tree into a plain JS object. * * - Element attributes become string properties * - Text nodes are concatenated (trimmed) into a `text` property * - Child elements are processed by the optional `normalizer` callback; * without one, each child is recursively converted using its `nodeName` as key * @param element - XML element to convert * @param normalizer - optional callback to handle child elements * @returns plain object representation of the XML element */ export declare function xmlToObject(element: Element, normalizer?: XMLNormalizer): Record; //# sourceMappingURL=xml.d.ts.map