/** * 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 { BinarySource } from '../types/BinarySource.js'; /** * Reads any {@link BinarySource} into a standalone `ArrayBuffer`. * Typed-array views (including Node.js `Buffer`) are copied so the result * does not alias a larger pooled buffer. */ export declare function readArrayBuffer(source: BinarySource): Promise; /** Reads a string or {@link BinarySource} as UTF-8 text. */ export declare function readText(source: string | BinarySource): Promise; /** * Fetches `url` and returns the response body as an `ArrayBuffer`. * * @throws {Error} If the response status is not 2xx. */ export declare function fetchArrayBuffer(url: string | URL): Promise;