import type { AIResult } from './types'; /** * Generate images from a text prompt. * Currently supports OpenAI DALL-E models. */ export declare function generateImage(prompt: string, options?: ImageGenerationOptions): Promise; /** * Edit an existing image with a text prompt (OpenAI DALL-E 2). */ export declare function editImage(image: Blob | File, prompt: string, options?: ImageEditOptions): Promise; /** * Create variations of an existing image (OpenAI DALL-E 2). */ export declare function createImageVariation(image: Blob | File, options?: { model?: 'dall-e-2' n?: number size?: '256x256' | '512x512' | '1024x1024' responseFormat?: 'url' | 'b64_json' }): Promise; /** * Analyze an image using AI vision capabilities. * Supports Anthropic Claude, OpenAI GPT-4V, and Ollama multimodal models. */ export declare function analyzeImage(imageInput: ImageInput, prompt: string, options?: VisionOptions): Promise; /** * Analyze multiple images together with a prompt. * Useful for comparison, batch analysis, etc. */ export declare function analyzeImages(images: ImageInput[], prompt: string, options?: VisionOptions): Promise; // ============================================================================ // Exports // ============================================================================ export declare const image: { generate: unknown; edit: unknown; variation: unknown; analyze: unknown; analyzeMultiple: unknown }; // ============================================================================ // Types // ============================================================================ export declare interface ImageGenerationOptions { provider?: 'openai' | 'ollama' model?: string size?: '256x256' | '512x512' | '1024x1024' | '1792x1024' | '1024x1792' quality?: 'standard' | 'hd' n?: number responseFormat?: 'url' | 'b64_json' style?: 'vivid' | 'natural' } export declare interface ImageGenerationResult { images: Array<{ url?: string b64_json?: string revisedPrompt?: string }> provider: string model: string } export declare interface VisionOptions { provider?: 'anthropic' | 'openai' | 'ollama' model?: string maxTokens?: number temperature?: number detail?: 'auto' | 'low' | 'high' } export declare interface VisionResult extends AIResult { provider: string } // ============================================================================ // Image Editing // ============================================================================ export declare interface ImageEditOptions { mask?: Blob | File model?: 'dall-e-2' n?: number size?: '256x256' | '512x512' | '1024x1024' responseFormat?: 'url' | 'b64_json' } export type ImageInput = | { type: 'url'; url: string } | { type: 'base64'; data: string; mediaType: string } | { type: 'file'; path: string }