import { PdfObject } from './objects/pdf-object.js'; import { PdfToken } from './tokens/token.js'; import { IncrementalParser } from './parser/incremental-parser.js'; /** * Decodes PDF tokens into PDF objects. * Handles parsing of all PDF object types including dictionaries, arrays, streams, and xref tables. */ export declare class PdfDecoder extends IncrementalParser { private ignoreWhitespace; private maxBufferSizeBytes; /** * Creates a new PDF decoder. * * @param options - Configuration options * @param options.ignoreWhitespace - If true, whitespace tokens are ignored * @param options.maxBufferSizeBytes - Maximum buffer size before compaction (default: 10MB) */ constructor(options?: { ignoreWhitespace?: boolean; maxBufferSizeBytes?: number; }); private nextName; private nextIndirectObject; private nextValue; private nextDictionary; private nextArray; private nextStream; private nextComment; private nextPrimitive; private nextExtraTokens; private nextXRefTable; private nextTrailer; private nextStartXRef; private nextObject; private static isPrimitive; protected bufferSize(): number; protected canCompact(): boolean; protected parse(): PdfObject; }