/** A parsed XML element. `attrs` preserves declared attributes (entity-decoded); * `children` are child elements in document order; `text` is the concatenated * direct text content (trimmed), used for elements like `conditionExpression`. */ export interface XmlElement { /** The qualified name as written, e.g. `bpmn:serviceTask` or `process`. */ name: string; attrs: Record; children: XmlElement[]; text: string; } /** The local (un-prefixed) name of an element or attribute. */ export declare function localName(qualified: string): string; /** Parse an XML document into its root element. Throws on a malformed document * (unbalanced tags, no root, or more than one top-level element). Comments, * CDATA, the `` prolog and other processing instructions are handled; * CDATA content contributes to `text`. */ export declare function parseXml(xml: string): XmlElement;