/** * Namespace resolver for GPX XML documents. * * Handles dynamic namespace prefix resolution and provides methods * for namespace-aware element selection. This allows parsing GPX files * regardless of the namespace prefixes used by different GPS manufacturers. */ export declare class NamespaceResolver { private prefixToNamespace; private namespaceToPrefix; constructor(xmlDocument: Document); /** * Extract all namespace declarations from the XML document. * Builds bidirectional mapping between prefixes and namespace URIs. */ private extractNamespaces; /** * Register a namespace prefix and URI mapping */ private registerNamespace; /** * Get namespace URI for a given prefix */ getNamespaceUri(prefix: string): string | null; /** * Check if a namespace URI is registered in this document */ hasNamespace(namespaceUri: string): boolean; /** * Find elements with a specific local name in a specific namespace. * This works regardless of the prefix used in the document. * * @param parent Parent element to search within * @param localName Local name of the element (without prefix) * @param namespaceUri Target namespace URI * @returns First matching element or null */ findElementByNamespace(parent: Element, localName: string, namespaceUri: string): Element | null; /** * Check if an element matches the given local name and namespace */ private elementMatches; /** * Get the namespace URI for an element based on its prefix */ getElementNamespace(element: Element): string | null; } //# sourceMappingURL=NamespaceResolver.d.ts.map