/** Well-known namespace URIs. */ export declare const ns: { readonly W: "http://schemas.openxmlformats.org/wordprocessingml/2006/main"; readonly R: "http://schemas.openxmlformats.org/officeDocument/2006/relationships"; readonly A: "http://schemas.openxmlformats.org/drawingml/2006/main"; readonly PIC: "http://schemas.openxmlformats.org/drawingml/2006/picture"; readonly WP: "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"; readonly MC: "http://schemas.openxmlformats.org/markup-compatibility/2006"; readonly CHART: "http://schemas.openxmlformats.org/drawingml/2006/chart"; readonly DGM: "http://schemas.openxmlformats.org/drawingml/2006/diagram"; readonly P: "http://schemas.openxmlformats.org/presentationml/2006/main"; readonly PKG_RELS: "http://schemas.openxmlformats.org/package/2006/relationships"; readonly OFFICE: "urn:oasis:names:tc:opendocument:xmlns:office:1.0"; readonly TEXT: "urn:oasis:names:tc:opendocument:xmlns:text:1.0"; readonly TABLE: "urn:oasis:names:tc:opendocument:xmlns:table:1.0"; readonly DRAW: "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"; readonly STYLE: "urn:oasis:names:tc:opendocument:xmlns:style:1.0"; readonly FO: "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"; readonly PRESENTATION: "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0"; readonly MANIFEST: "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0"; readonly XLINK: "http://www.w3.org/1999/xlink"; readonly XML: "http://www.w3.org/XML/1998/namespace"; readonly SVG_COMPAT: "urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"; readonly VML: "urn:schemas-microsoft-com:vml"; readonly O_VML: "urn:schemas-microsoft-com:office:office"; readonly WPS: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape"; readonly WPG: "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"; }; export type XmlNode = { type: 'elem'; elem: Element; } | { type: 'text'; text: string; }; export interface Attr { ns: string | undefined; local: string; value: string; } export declare class Element { ns: string | undefined; local: string; attrs: Attr[]; children: XmlNode[]; private _elems; constructor(nsUri: string | undefined, local: string, attrs?: Attr[], children?: XmlNode[]); is(nsUri: string, local: string): boolean; /** * Same-vocabulary attribute lookup: the qualified attribute wins, and an * explicitly unqualified one with the same local name is accepted. */ attr(nsUri: string, local: string): string | undefined; attrQualified(nsUri: string, local: string): string | undefined; attrUnqualified(local: string): string | undefined; attrAny(local: string): string | undefined; childElems(): Element[]; find(nsUri: string, local: string): Element | undefined; findAll(nsUri: string, local: string): Element[]; /** Depth-first descendant nodes in document order (iterative). */ descendantNodes(): Generator; descendantElems(): Generator; firstDescendant(nsUri: string, local: string): Element | undefined; descendants(nsUri: string, local: string): Generator; descendantsAny(local: string): Generator; text(): string; } /** * ISO/IEC 29500 Strict namespace and relationship-type URIs are the * Transitional ones re-rooted under `http://purl.oclc.org/ooxml/` with the * `2006` version segment dropped. */ export declare function normalizeOoxmlUri(uri: string): string | undefined; /** StarOffice 6 / OpenOffice.org 1.x vocabularies map onto ODF 1.0 names. */ export declare function normalizeStarOfficeUri(uri: string): string | undefined; export declare function parseXml(bytes: Uint8Array): Element;