/** * 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 { PDS3Image } from '../pds3/core/pds3Image.js'; /** * Loads a PDS3 image from in-memory data. * * @param label - Contents of the `.LBL` file. For attached labels, pass the * `.IMG` file itself and omit `data`. * @param data - Contents of the `.IMG` file (detached labels only). * @returns Parsed {@link PDS3Image} instance. * * @example * ```ts * // Detached label (.LBL + .IMG) * const image = await loadPDS3Image(lblBuffer, imgBuffer); * // Attached label (single .IMG) * const image = await loadPDS3Image(imgBuffer); * ``` */ export declare function loadPDS3Image(label: BinarySource, data?: BinarySource): Promise; /** * Loads a PDS3 image from `File` / `Blob` objects, e.g. from ``. * * @param imgFile - The `.IMG` file. * @param lblFile - The detached `.LBL` file. Omit when the label is attached to `imgFile`. * @returns Parsed {@link PDS3Image} instance. */ export declare function loadPDS3ImageByFile(imgFile: Blob, lblFile?: Blob): Promise; /** * Fetches a PDS3 image from a remote `.IMG` URL. * * @param imgUrl - URL of the `.IMG` image file. * @param lblUrl - URL of the `.LBL` label. Defaults to `imgUrl` with the * extension replaced by `.LBL`. * @returns Parsed {@link PDS3Image} instance. * @throws {Error} If either request fails. */ export declare function loadPDS3ImageByUrl(imgUrl: string | URL, lblUrl?: string | URL): Promise;