Files
bentopdf/public/workers/table-of-contents.worker.d.ts

24 lines
489 B
TypeScript
Raw Permalink Normal View History

declare const coherentpdf: typeof import('../../src/types/coherentpdf.global').coherentpdf;
interface GenerateTOCMessage {
command: 'generate-toc';
pdfData: ArrayBuffer;
title: string;
fontSize: number;
fontFamily: number;
addBookmark: boolean;
cpdfUrl?: string;
}
interface TOCSuccessResponse {
status: 'success';
pdfBytes: ArrayBuffer;
}
interface TOCErrorResponse {
status: 'error';
message: string;
}
type TOCResponse = TOCSuccessResponse | TOCErrorResponse;