import { PDS3Image } from './pds3/core/pds3Image'; import { PDS4Image } from './pds4/core/pds4Image'; import { parseLBL } from './pds3/parser/lblParser'; import { parseXML } from './pds4/parser/xmlParser'; import { encodeToPNG } from './encoder/pngEncoder'; import { encodeToTIFF } from './encoder/tiffEncoder'; import type { PDSImage } from './interfaces/PdsImage'; declare const version: string, date: string; export { PDS3Image, PDS4Image, parseLBL, parseXML, version, date, encodeToPNG, encodeToTIFF, }; /** * Fetches a PDS3 image from a remote `.IMG` URL. * The corresponding `.LBL` file is derived by replacing the `.IMG` extension. * * @param url - Direct URL of the `.IMG` image file. * @returns Parsed {@link PDS3Image} instance. */ export declare function loadPDS3ImageByUrl(url: string): Promise; /** * Fetches a PDS4 image from remote URLs. * * @param xmlUrl - URL of the PDS4 XML label file. * @param imgUrl - URL of the binary image data file referenced by the label. * @returns Parsed {@link PDS4Image} instance. */ export declare function loadPDS4ImageByUrl(xmlUrl: string, imgUrl: string): Promise; /** * Parses a PDS3 image from a single {@link File} object. * The first half of the file is treated as the LBL label and the second half * as the binary image data. For normal usage prefer {@link loadPDS3ImageByUrl}. * * @param file - A `File` selected via an `` element. * @returns Parsed {@link PDS3Image} instance. */ export declare function loadPDS3ImageByFile(file: File): Promise; /** * Loads a PDS image from a directory chosen via the * [File System Access API](https://developer.mozilla.org/docs/Web/API/File_System_API). * * Detection order: * 1. If the directory contains a `.IMG` file **and** a same-stem `.LBL` file, * the pair is parsed as a **PDS3** image. * 2. If the directory contains a `.xml` file with a `file_name` element, the * referenced image is parsed as a **PDS4** image. * 3. Otherwise an error is thrown. * * @param directoryHandle - Handle to the directory to search. * @returns `ArrayBuffer` containing the normalized Float32 pixel data. * @throws If no supported PDS dataset is found in the directory. */ export declare function loadPDSImageArrayBufferFromDirectory(directoryHandle: FileSystemDirectoryHandle): Promise; /** * Encodes a parsed PDS image as a **16-bit grayscale PNG** file. * Pixel values are linearly normalized from their min/max range to [0, 65535]. * * @param image - Any parsed PDS image ({@link PDS3Image} or {@link PDS4Image}). * @returns `ArrayBuffer` containing a valid PNG file. */ export declare function toPNG(image: PDSImage): ArrayBuffer; /** * Encodes a parsed PDS image as an **uncompressed 16-bit grayscale TIFF** file. * Pixel values are linearly normalized from their min/max range to [0, 65535]. * * @param image - Any parsed PDS image ({@link PDS3Image} or {@link PDS4Image}). * @returns `ArrayBuffer` containing a valid TIFF file. */ export declare function toTIFF(image: PDSImage): ArrayBuffer;