/** * 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 { PDSLabel, PDSValue } from './types.js'; /** * Converts the right-hand side of a statement into a {@link PDSValue}. * * Supports quoted strings, `'symbols'`, `( sequences )`, `{ sets }`, * `value ` quantities, based integers (`2#1010#`) and decimal numbers. * Anything else (identifiers, dates, ...) is returned as a raw string. */ export declare function parseValue(raw: string): PDSValue; /** * Parses a PDS3 label into a structured {@link PDSLabel} dictionary. * * Handles: * - Scalar `KEY = value` assignments, including values that span multiple lines * - Nested `OBJECT` / `GROUP` blocks * - Numbers, based integers, quoted strings, sequences, sets and unit suffixes * - `/* ... *\/` comments * * Parsing stops at the `END` statement, so attached labels (label and image * data in the same file) can be passed as a whole. * * @param buffer - Raw bytes of a `.LBL` file, or of an `.IMG` file with an attached label. * @returns Parsed label dictionary. */ export declare function parseLBL(buffer: ArrayBuffer | ArrayBufferView): PDSLabel;