Files
bentopdf/public/workers/alternate-merge.worker.d.ts

25 lines
508 B
TypeScript
Raw Normal View History

declare const coherentpdf: typeof import('../../src/types/coherentpdf.global').coherentpdf;
interface InterleaveFile {
name: string;
data: ArrayBuffer;
}
interface InterleaveMessage {
command: 'interleave';
files: InterleaveFile[];
cpdfUrl?: string;
}
interface InterleaveSuccessResponse {
status: 'success';
pdfBytes: ArrayBuffer;
}
interface InterleaveErrorResponse {
status: 'error';
message: string;
}
type InterleaveResponse = InterleaveSuccessResponse | InterleaveErrorResponse;