Files
bentopdf/public/workers/pdf-to-json.worker.d.ts

21 lines
497 B
TypeScript
Raw Normal View History

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;