/** * 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'; import { encodeToPNG } from './encoder/pngEncoder.js'; import { encodeToTIFF } from './encoder/tiffEncoder.js'; /** Library version (from `package.json`). */ export declare const version: string; /** Library build date (ISO 8601). */ export declare const date: string; export { PDS3Image } from './pds3/core/pds3Image.js'; export { parseLBL } from './pds3/parser/lblParser.js'; export { PDS4Image } from './pds4/core/pds4Image.js'; export { parseXML } from './pds4/parser/xmlParser.js'; export { loadPDS3Image, loadPDS3ImageByFile, loadPDS3ImageByUrl } from './loader/pds3Loader.js'; export { loadPDS4Image, loadPDS4ImageByFile, loadPDS4ImageByUrl } from './loader/pds4Loader.js'; export { loadPDSImageArrayBufferFromDirectory, loadPDSImageFromDirectory } from './loader/directoryLoader.js'; export { encodeToPNG, encodeToTIFF }; export type { PDSImage } from './types/PDSImage.js'; export type { BinarySource } from './types/BinarySource.js'; export type { PDSLabel, PDSQuantity, PDSValue } from './pds3/parser/types.js'; export type { PDS4DataType } from './pds4/parser/dataType.js'; /** * Encodes a parsed PDS image as a **16-bit grayscale PNG** file. * Pixel values are linearly normalized from their finite min/max range to * `[0, 65535]`; invalid samples (`NaN`) become `0`. * * @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 finite min/max range to * `[0, 65535]`; invalid samples (`NaN`) become `0`. * * @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;