export declare const OUTPUT_DIR: string; export declare function ensureOutputDir(): void; /** Encode raw RGBA pixel data into a PNG file buffer */ export declare function rgbaToPng(rgba: Buffer, width: number, height: number): Buffer; export interface ExtractedImage { base64: string; filePath: string; mimeType: string; } /** * Walk through an API response, find all base64 image data, * save them to disk, and return the file paths + raw base64 for MCP image blocks. * Also strips base64 data from the result to keep the JSON response small. */ export declare function extractAndSaveImages(result: unknown, toolName: string): { images: ExtractedImage[]; result: unknown; };