/** * Minimal XML parser — works in dedicated Web Workers where DOMParser * isn't available. * * Scope: well-formed XML produced by E57 writers (Faro, Leica, Trimble, * generic exporters). Specifically: * - Open + close tag pairs and self-closing tags * - Double-quoted attribute values (E57 always uses double quotes) * - Element text content (no mixed content; XML declaration + DOCTYPE * + comments + CDATA are skipped) * - Standard XML entities (& < > " ') * * NOT a full XML 1.0 implementation — it's deliberately just enough for * E57 + similar shallow, attribute-heavy formats. Keeps the worker * bundle small (no `xmldom` dep) and avoids a per-file decode round-trip * back to the main thread. */ export interface XmlElement { name: string; attrs: Map; children: XmlElement[]; text: string; } /** Parse XML and return the root element. Throws on truly malformed input. */ export declare function parseXml(xml: string): XmlElement; export declare function childByName(parent: XmlElement, name: string): XmlElement | null; export declare function childrenByName(parent: XmlElement, name: string): XmlElement[]; export declare function textChild(parent: XmlElement, name: string): string | null; //# sourceMappingURL=xml-mini.d.ts.map