import { PdfValue } from './objects.js'; /** * Serialize a single PDF value to its textual representation (ISO 32000-1 §7.3). * * @param v The value to serialize. * @returns The serialized string. * @throws Error on a non-finite number, or a {@link PdfStream} (which must be an * indirect object, not inlined). */ export declare function serializeValue(v: PdfValue): string; /** * Serialize a value as a complete `id gen obj … endobj` indirect object * (§7.3.10). Streams are emitted with their raw payload; everything else is * inlined via {@link serializeValue}. * * @param id The object number. * @param generation The generation number. * @param value The object value. * @returns The encoded indirect-object bytes. */ export declare function serializeIndirectObject(id: number, generation: number, value: PdfValue): Uint8Array;