/** * pds2img * * @description NASA Planetary Data System (PDS) to Image conversion library. * @author Logue * @license MIT * @version 0.3.0 * @see {@link https://github.com/logue/pds2img} */ /** * Parses a PDS4 XML label string into a DOM {@link Document}. * * Uses the browser's `DOMParser` when available, or falls back to the * `@xmldom/xmldom` package for Node.js / server-side environments. * * @param xmlText - Full text content of a PDS4 `.xml` label file. * @returns Promise that resolves to a parsed XML document. */ export declare function parseXML(xmlText: string): Promise; /** * Returns the trimmed text of the first descendant of `parent` named `tagName`. * * `getElementsByTagName` is used instead of CSS selectors because some DOM * implementations (e.g. happy-dom, xmldom) do not reliably support selectors * on XML element names containing underscores. */ export declare function getChildText(parent: Document | Element | undefined, tagName: string): string | undefined; /** * Returns the name of the data file described by a PDS4 label * (`File_Area_Observational/File/file_name`). * * @param xml - Parsed PDS4 label. * @returns The referenced file name, or `undefined` if the label has none. */ export declare function getPDS4DataFileName(xml: Document): string | undefined;