import { AfppParseOptions, PageProcessor } from './core.js'; /** * Converts a PDF file from various input formats (Buffer, Uint8Array, string path, or URL). Pages are returned in mixed array of strings (text content) and buffers (image content) via callback function. * * @async * @function parsePdf * * @param {Buffer|Uint8Array|string|URL} input - The PDF source, which can be a file path, URL, Buffer, or Uint8Array. * @param {AfppParseOptions} [options] - Parsing options for customizing the PDF parsing process. * @param {PageProcessor} callback - Callback function to process each page's content. * * @since v1.0.0 * * @returns {Promise} - A promise that resolves to an array of processed page results. * * @throws {Error} Throws an error if the input type is invalid. */ export declare function parsePdf(input: Buffer | string | Uint8Array | URL, options: AfppParseOptions, callback: PageProcessor): Promise; export declare function parsePdf(input: Buffer | string | Uint8Array | URL, callback: PageProcessor): Promise;