mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-12 01:33:36 +01:00
24 lines
489 B
TypeScript
24 lines
489 B
TypeScript
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;
|