2025-11-11 11:13:06 +05:30
|
|
|
declare const coherentpdf: typeof import('../../src/types/coherentpdf.global').coherentpdf;
|
|
|
|
|
|
|
|
|
|
interface ExtractAttachmentsMessage {
|
|
|
|
|
command: 'extract-attachments';
|
|
|
|
|
fileBuffers: ArrayBuffer[];
|
|
|
|
|
fileNames: string[];
|
2026-01-27 15:26:11 +05:30
|
|
|
cpdfUrl?: string;
|
2025-11-11 11:13:06 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface ExtractAttachmentSuccessResponse {
|
|
|
|
|
status: 'success';
|
|
|
|
|
attachments: Array<{ name: string; data: ArrayBuffer }>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface ExtractAttachmentErrorResponse {
|
|
|
|
|
status: 'error';
|
|
|
|
|
message: string;
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-27 15:26:11 +05:30
|
|
|
type ExtractAttachmentResponse =
|
|
|
|
|
| ExtractAttachmentSuccessResponse
|
|
|
|
|
| ExtractAttachmentErrorResponse;
|