/** * 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} */ import type { BinarySource } from '../types/BinarySource.js'; import { PDS4Image } from '../pds4/core/pds4Image.js'; /** * Loads a PDS4 image from in-memory data. * * @param label - The XML label, as text or binary. * @param data - Contents of the data file referenced by the label. * @returns Parsed {@link PDS4Image} instance. */ export declare function loadPDS4Image(label: string | BinarySource, data: BinarySource): Promise; /** * Loads a PDS4 image from `File` / `Blob` objects, e.g. from ``. * * @param xmlFile - The `.xml` label file. * @param imgFile - The data file referenced by the label. * @returns Parsed {@link PDS4Image} instance. */ export declare function loadPDS4ImageByFile(xmlFile: Blob, imgFile: Blob): Promise; /** * Fetches a PDS4 image from remote URLs. * * @param xmlUrl - URL of the PDS4 XML label file. * @param imgUrl - URL of the data file. Defaults to the label's `file_name`, * resolved relative to `xmlUrl`. * @returns Parsed {@link PDS4Image} instance. * @throws {Error} If a request fails or the data file cannot be determined. */ export declare function loadPDS4ImageByUrl(xmlUrl: string | URL, imgUrl?: string | URL): Promise;