/** * Leaper Agent – Vision Tool * Image analysis, OCR, and image-to-text via LLM multimodal APIs. */ import type { ToolDefinition } from './registry.js'; export interface VisionAnalyzeOptions { image: string; prompt?: string; model?: string; max_tokens?: number; } export interface VisionResult { success: boolean; text?: string; error?: string; model?: string; tokens_used?: number; } export interface ImageData { base64: string; mediaType: string; } export declare function isSafeImageUrl(url: string): boolean; export declare function detectMediaType(source: string): string; export declare function loadLocalImage(filePath: string): ImageData; export declare function fetchRemoteImage(url: string): Promise; export declare function loadImage(source: string): Promise; export declare function analyzeImage(opts: VisionAnalyzeOptions): Promise; export declare const visionTool: ToolDefinition; //# sourceMappingURL=vision.d.ts.map