/**
 * PDFium WASM Loader
 *
 * Handles PDFium-specific WASM module loading and initialization.
 * Provides asynchronous loading of the PDFium WASM module with
 * proper error handling across all WASM runtimes (browser, Node.js, Bun, Deno).
 *
 * PDFium can be provided in several ways:
 * 1. Place `pdfium.js` (Emscripten output) alongside the package distribution
 * 2. Set `KREUZBERG_PDFIUM_PATH` environment variable to the directory containing `pdfium.js`
 * 3. Call `initialize_pdfium_render()` manually with a loaded PDFium module
 */
import type { WasmModule } from "./state.d.ts";
/**
 * Initialize PDFium WASM module asynchronously
 *
 * Loads and binds the PDFium WASM module for PDF extraction.
 * This function is called automatically during WASM initialization
 * in all supported environments (browser, Node.js, Bun, Deno).
 *
 * PDFium provides high-performance PDF parsing and extraction capabilities,
 * enabling reliable text and metadata extraction from PDF documents.
 *
 * If the PDFium module cannot be found or loaded, initialization fails
 * gracefully and PDF extraction will not be available. Users can provide
 * the PDFium module manually via `initialize_pdfium_render()`.
 *
 * @param wasmModule - The loaded Kreuzberg WASM module
 *
 * @internal
 *
 * @example
 * ```typescript
 * // Called automatically during initWasm() in all environments
 * // See wasm-loader.ts for integration
 *
 * // To provide PDFium manually in Node.js:
 * // Set KREUZBERG_PDFIUM_PATH=/path/to/pdfium-wasm-dir
 *
 * // Or initialize manually:
 * import { initWasm, getWasmModule } from '@kreuzberg/wasm';
 * await initWasm();
 * const wasm = getWasmModule();
 * const pdfium = await import('./pdfium.d.ts').then(m => m.default());
 * wasm.initialize_pdfium_render(pdfium, wasm, false);
 * ```
 */
export declare function initializePdfiumAsync(wasmModule: WasmModule): Promise<void>;
//# sourceMappingURL=pdfium-loader.d.ts.map