/** * 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} */ /** Supported PDS4 `data_type` values for `Array_2D_Image` elements. */ export type PDS4DataType = 'UnsignedByte' | 'SignedByte' | 'UnsignedMSB2' | 'UnsignedLSB2' | 'SignedMSB2' | 'SignedLSB2' | 'UnsignedMSB4' | 'UnsignedLSB4' | 'SignedMSB4' | 'SignedLSB4' | 'IEEE754MSBSingle' | 'IEEE754LSBSingle' | 'IEEE754MSBDouble' | 'IEEE754LSBDouble'; /** All supported {@link PDS4DataType} values. */ export declare const PDS4DataType: PDS4DataType[]; /** Byte length of a single sample for each {@link PDS4DataType}. */ export declare const bytesPerSample: Record; /** * Narrows a raw `data_type` string from a PDS4 XML label to a {@link PDS4DataType}. * * @param type - `data_type` text content read from the XML label. * @throws {RangeError} If `type` is not one of the supported values. */ export declare function toPDS4DataType(type: string): PDS4DataType; /** * Reads a single numeric sample from `view` using the PDS4 `data_type`. * * @param view - DataView wrapping the image data buffer. * @param offset - Byte offset of the sample within `view`. * @param type - PDS4 {@link PDS4DataType} from the XML label. * @returns Raw (unscaled) sample value. */ export declare function readValue(view: DataView, offset: number, type: PDS4DataType): number;