/** Build-owned, same-version PDF.js resources; all binary assets are decoded locally. */ import workerSource from 'pdfjs-dist/build/pdf.worker.min.mjs?raw'; export { workerSource }; /** Resource kinds used by PDF.js 6's BinaryDataFactory requests. */ export type PdfAssetKind = 'cMapUrl' | 'standardFontDataUrl' | 'wasmUrl'; /** Original filenames mapped to base64, in the same PDF.js version as the worker. */ export type PdfAssetMap = Readonly>>>; declare global { /** Inline artifact data supplied by the package-local build configuration. */ const __DSH_PDFJS_ASSETS__: PdfAssetMap; } /** Public methods required by PDF.js's BinaryDataFactory option. */ export interface PdfBinaryDataFactory { /** @param request - PDF.js resource kind and exact filename. @returns independent transferable resource bytes. */ fetch(request: { readonly kind: PdfAssetKind; readonly filename: string; }): Promise; } /** * Capture this build's binary assets without network fallbacks. * @param assets - build-inlined base64 resources, read only when a PDF is opened. * @returns the constructor passed to PDF.js getDocument. */ export declare function createPdfBinaryDataFactory(assets?: PdfAssetMap): new () => PdfBinaryDataFactory; //# sourceMappingURL=assets.d.ts.map