/** * 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 { PDSImage } from '../types/PDSImage.js'; /** * 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. A `.IMG` file **and** a same-stem `.LBL` file → **PDS3**. * 2. A `.xml` label whose `file_name` exists in the directory → **PDS4**. * * @param directoryHandle - Handle to the directory to search (not recursive). * @returns The parsed image. * @throws {Error} If no supported PDS dataset is found in the directory. */ export declare function loadPDSImageFromDirectory(directoryHandle: FileSystemDirectoryHandle): Promise; /** * Same as {@link loadPDSImageFromDirectory}, but returns the decoded pixels * as the `ArrayBuffer` of a row-major `Float32Array`. * * @param directoryHandle - Handle to the directory to search (not recursive). * @returns `ArrayBuffer` containing the Float32 pixel data. * @throws {Error} If no supported PDS dataset is found in the directory. */ export declare function loadPDSImageArrayBufferFromDirectory(directoryHandle: FileSystemDirectoryHandle): Promise;