/** * 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} */ /** * Validates that `pixels` matches the given dimensions. * * @throws {RangeError} If the dimensions are invalid or do not match the pixel count. */ export declare function assertPixelDimensions(pixels: Float32Array, width: number, height: number): void; /** * Linearly maps pixel values from their finite min/max range to `[0, 65535]`. * * Non-finite values (`NaN`, `±Infinity`, e.g. from `INVALID_CONSTANT`) are * excluded from the range calculation and written as `0`. * A constant image maps to all zeros. * * @param pixels - Row-major pixel values. * @returns 16-bit samples in the same order. */ export declare function normalizeToUint16(pixels: Float32Array): Uint16Array;