/** * The downscaled preview `enrich_photo` returns as an `image` content block * (spec ยง10.3), so an agent can see the photo it just enriched without * pulling full-resolution bytes into its context. * * sharp is a native module, so it loads lazily on the first preview: a binary * that fails to load on the user's machine costs only the preview (the caller * turns the rejection into a warning), never the server's startup. */ /** Longest edge of the preview, in pixels. Smaller inputs are never upscaled. */ export declare const PREVIEW_MAX_EDGE = 1024; /** JPEG quality of the preview. */ export declare const PREVIEW_QUALITY = 80; /** * Decode `bytes`, apply its EXIF orientation, shrink the longest edge to * 1024 px (never enlarging), and re-encode as JPEG quality 80. Rejects when * sharp cannot load or the bytes are not a decodable image. */ export declare function makePreview(bytes: Buffer): Promise<{ data: string; mimeType: 'image/jpeg'; }>; //# sourceMappingURL=preview.d.ts.map