import { AfppParseOptions, StreamingResult } from './core.js'; /** * Streams PDF pages as images, yielding each page as it's processed. * Useful for large PDFs where you want to process pages incrementally. * * @example * ```typescript * for await (const { pageNumber, data } of streamPdf2image('./large.pdf')) { * await fs.writeFile(`page-${pageNumber}.png`, data); * } * ``` * * @param input - The PDF source (file path, URL, Buffer, or Uint8Array) * @param options - Optional parsing options * @yields {StreamingResult} Page data with page number and total count */ export declare const streamPdf2image: (input: Buffer | string | Uint8Array | URL, options?: AfppParseOptions) => AsyncGenerator>; /** * Streams PDF pages as text, yielding each page as it's processed. * Useful for large PDFs where you want to process pages incrementally. * * @example * ```typescript * for await (const { pageNumber, data } of streamPdf2string('./large.pdf')) { * console.log(`Page ${pageNumber}: ${data.substring(0, 100)}...`); * } * ``` * * @param input - The PDF source (file path, URL, Buffer, or Uint8Array) * @param options - Optional parsing options * @yields {StreamingResult} Page text with page number and total count */ export declare const streamPdf2string: (input: Buffer | string | Uint8Array | URL, options?: AfppParseOptions) => AsyncGenerator>;