import { type XmlNode } from './tree.js'; export interface ParsedDocument { root: XmlNode; /** * The root element's own `xmlns` declarations, in source order (`prefix` is * `''` for the default one). Clark notation carries the namespace but not * the prefix, so these are only needed by parts that must be written back * with the prefixes the producer chose — `xl/workbook.xml`, whose * `mc:Ignorable` names them by prefix. */ rootNamespaces: Array<{ prefix: string; ns: string; }>; } /** * Parse a UTF-8 XML payload into an {@link XmlNode} tree. Element and attribute * names are returned in Clark notation. Throws {@link OpenXmlSchemaError} on * DTD/entity declarations or on multi-root documents. * * Shorthand for {@link parseXmlDocument} when the root's namespace prefixes * don't matter — which is everywhere except the handful of parts that carry an * `mc:Ignorable`. */ export declare function parseXml(input: Uint8Array | string): XmlNode; /** {@link parseXml} plus the root element's namespace declarations. */ export declare function parseXmlDocument(input: Uint8Array | string): ParsedDocument;