export declare const XMLNS_NAMESPACE = "http://www.w3.org/2000/xmlns/"; export declare const XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace"; export declare function declareInheritedNamespaces(importedRoot: Element, sourceRoot: Element): void; export declare function collectRetainedNamespaces(root: Element, retained: Set): void; /** Clones XML without relying on DOM importNode prefix preservation. */ export declare function cloneXmlElement(document: Document, source: Element): Element; export declare function xmlNamespaceUri(element: Element, prefix: string): string | null; export declare function xmlDeclaredPrefix(root: Element, namespace: string): string | null; export declare function xmlAttributeNamespace(element: Element, item: Attr): string | null; export declare function xmlAttributePrefix(item: Attr): string | null; export declare function xmlAttributeLocalName(item: Attr): string; export declare function hasXmlAttribute(element: Element, namespace: string, localName: string): boolean; export declare function hasUnexpectedXmlAttributes(element: Element, allowedUnqualified: ReadonlySet): boolean; export declare function hasNonWhitespaceXmlText(element: Element): boolean; export declare function isStructurallyValidAlternateContent(element: Element): boolean; export declare function assertXmlRoot(root: Element, localName: string, namespaces: ReadonlySet, message: string): void;