Files
bentopdf/public/workers/pdf-to-json.worker.d.ts
2026-03-09 17:02:30 +01:00

21 lines
497 B
TypeScript

declare const coherentpdf: typeof import('../../src/types/coherentpdf.global').coherentpdf;
interface ConvertPDFToJSONMessage {
command: 'convert';
fileBuffers: ArrayBuffer[];
fileNames: string[];
cpdfUrl?: string;
}
interface PDFToJSONSuccessResponse {
status: 'success';
jsonFiles: Array<{ name: string; data: ArrayBuffer }>;
}
interface PDFToJSONErrorResponse {
status: 'error';
message: string;
}
type PDFToJSONResponse = PDFToJSONSuccessResponse | PDFToJSONErrorResponse;