import { ByteArray } from '../types.js'; import { PdfObject } from './objects/pdf-object.js'; /** * Converts an iterable of byte arrays into PDF objects. * Processes bytes through tokenization and decoding. * * @param bytes - Iterable of byte arrays to process * @returns A generator yielding parsed PDF objects */ export declare function bytesToPdfObjects(bytes: Iterable): Generator; /** * Converts a string containing PDF content into PDF objects. * * @param str - The string to parse as PDF content * @returns A generator yielding parsed PDF objects */ export declare function stringToPdfObjects(str: string): Generator; /** * Decodes an iterable of byte arrays into PDF objects. * Allows configuring whitespace handling. * * @param input - Iterable of byte arrays to decode * @param options - Configuration options * @param options.ignoreWhitespace - If true, whitespace tokens are ignored * @returns A generator yielding parsed PDF objects */ export declare function pdfDecoder(input: Iterable, options?: { ignoreWhitespace?: boolean; }): Generator; /** * Asynchronously decodes byte arrays into PDF objects. * Supports both async and sync iterables for streaming PDF parsing. * * @param input - Async or sync iterable of byte arrays * @returns An async generator yielding parsed PDF objects */ export declare function pdfDecoderAsync(input: AsyncIterable | Iterable): AsyncGenerator;