/** * 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'; /** * Shared implementation for PDS image products. * Subclasses only need to describe geometry and how a single pixel is decoded. */ export declare abstract class PDSImageBase implements PDSImage { abstract readonly width: number; abstract readonly height: number; abstract getPixel(x: number, y: number): number; toFloat32Array(): Float32Array; } /** * Asserts that an image dimension read from a label is a positive integer. * * @param name - Human readable name used in the error message. * @param value - Value read from the label. * @returns The validated value. * @throws {RangeError} If `value` is not a positive integer. */ export declare function assertDimension(name: string, value: number): number; /** * Asserts that the buffer is large enough to hold the described image. * * @param buffer - Image data buffer. * @param requiredBytes - Byte offset of the last byte the image needs, plus one. * @throws {RangeError} If the buffer is too small. */ export declare function assertBufferSize(buffer: ArrayBuffer, requiredBytes: number): void;