import Language from '~/interfaces/Language'; /** * Loads a PDF document using the pdf.js library. * * Configures the pdf.js worker, resolves the CMap URL if provided, * and returns the pdf.js document proxy. On failure, throws a localized error message. * * @param documentUrl - The URL of the PDF document to load. * @param workerSrc - The URL of the pdf.js worker script. * @param language - The locale resource for generating localized error messages. * @param cMapUrl - Optional URL for CMap files (required for CJK font support). * @returns The pdf.js `PDFDocumentProxy` object. * @throws Error with a localized message if the document cannot be loaded. */ declare const _default: (documentUrl: string, workerSrc: string, language: Language, cMapUrl?: string) => Promise; export default _default;