/** * handlers/jpeg.ts — JPEG handler * * Embeds the MajikSignature in a custom APP15 (0xFFEF) segment. * APP0–APP15 are all valid JPEG application marker segments. * APP1 is used by EXIF/XMP; we use APP15 to avoid collisions. * * Segment layout: * 0xFF 0xEF [2B length BE (includes the 2 length bytes)] [identifier "MAJIK\0"] [JSON UTF-8] * * Falls back to Tier-2 trailer if segment injection fails. */ import { FormatHandler } from "../../types"; export declare class JpegHandler implements FormatHandler { readonly name = "JPEG"; readonly supportedMimeTypes: readonly ["image/jpeg", "image/jpg"]; canHandle(bytes: Uint8Array, mimeType?: string): boolean; embed(bytes: Uint8Array, signatureJson: string): Promise; extract(bytes: Uint8Array): Promise; strip(bytes: Uint8Array): Promise; private _findApp15; private _removeApp15; }