import { PDFiumWorkerClientBase } from "./worker/client-base.js"; export { PDFiumWorkerDocument, PDFiumWorkerPage, type PDFiumWorkerRenderParams, type PDFiumWorkerRenderResult, } from "./worker/client-base.js"; /** * Pass exactly one of `wasmUrl` or `wasmBinary`. * * - `wasmUrl`: absolute URL of pdfium.wasm. Bundlers like Vite (`?url`) and * Webpack 5 (`new URL(..., import.meta.url)`) produce absolute URLs in * production. The worker streaming-instantiates from the URL. * - `wasmBinary`: raw bytes of pdfium.wasm. Useful when you already have the * bytes (cached in IndexedDB, fetched via custom auth, etc.). The buffer is * transferred to the worker — pass a copy if you need to keep using it. */ export type PDFiumWorkerClientOptions = { wasmUrl: string; wasmBinary?: never; } | { wasmUrl?: never; wasmBinary: ArrayBuffer; }; export declare class PDFiumWorkerClient extends PDFiumWorkerClientBase { static spawn(options: PDFiumWorkerClientOptions): Promise; }