/** * daemon/vision.ts — Image and video understanding. * * Image analysis: Delivered to the active Claude Code session via iTerm2. * The image is written to a temp file, and the path is typed into the session * so Claude's built-in Read tool can analyze it. Covered by Max plan. * * Video analysis: Google Gemini 2.0 Flash REST API (free tier: 15 RPM, 1M tokens/day). * Only model with native video understanding — no frame extraction needed. * * Requires GEMINI_API_KEY for video analysis (free tier available). */ interface SaveImageResult { path: string; sizeBytes: number; } /** * Save a received image to disk and return the path. * The path can be typed into an active Claude Code session for analysis. */ export declare function saveReceivedImage(imageBuffer: Buffer, mimetype?: string): SaveImageResult; /** * Save a received video to disk and return the path. */ export declare function saveReceivedVideo(videoBuffer: Buffer, mimetype?: string): SaveImageResult; interface AnalyzeVideoOptions { videoBuffer: Buffer; mimetype?: string; prompt?: string; model?: string; } interface AnalyzeResult { text: string; model: string; durationMs: number; } /** * Analyze a video using Gemini's native video understanding. * Free tier: 15 requests/minute, 1M tokens/day. * * Used as a fallback when no active Claude Code session is available, * or for direct video analysis requests. */ export declare function analyzeVideo(opts: AnalyzeVideoOptions): Promise; export {}; //# sourceMappingURL=vision.d.ts.map