import { ContentBlock, ImageMetadataBlock } from "./types"; /** * Detect MIME type from image binary data using magic bytes (file signatures) * Returns null if the format is not recognized */ export declare function detectMimeTypeFromBuffer(buffer: ArrayBuffer): string | null; /** * Downloads images from image_metadata blocks and applies smart size/count limiting * Prioritizes keeping the most recent images (assumes content is ordered with newest items last) * Uses intelligent size calculation accounting for text content * * @param content Array of content blocks that may contain image_metadata blocks * @param maxImages Maximum number of images to keep (defaults to CONFIG.maxImages) * @param maxSizeMB Maximum response size in MB (defaults to CONFIG.maxResponseSizeMB) * @returns Promise resolving to content array with downloaded images or placeholders */ export declare function downloadImages(content: (ContentBlock | ImageMetadataBlock)[], maxImages?: number, maxSizeMB?: number): Promise; //# sourceMappingURL=image-processing.d.ts.map