/** * handlers/pdf.ts — PDF handler * * Embeds the MajikSignature as a binary trailer appended after the PDF's * last %%EOF marker. This approach is: * - Deterministic: strip() is a pure byte slice, no parsing * - Non-destructive: the PDF remains valid and openable * - Spec-compliant: appending after %%EOF is allowed by PDF 1.7 §7.5.6 * * If you want human-readable metadata visible in Adobe/Preview, call * MajikSignatureClient.addDisplayMetadata() after signing — that is a * separate display-only step and does not affect verification. */ import { FormatHandler } from "../../types"; export declare class PdfHandler implements FormatHandler { readonly name = "PDF"; readonly supportedMimeTypes: readonly ["application/pdf"]; private _findMagic; canHandle(bytes: Uint8Array, mimeType?: string): boolean; embed(bytes: Uint8Array, signatureJson: string): Promise; strip(bytes: Uint8Array): Promise; extract(bytes: Uint8Array): Promise; }