import type { AIDriver, AIDriverConfig, AIMessage, AIResult, ChatCompletionOptions } from '../../types'; /** * Configure Ollama globally */ export declare function configure(config: OllamaDriverConfig): void; export declare function createOllamaDriver(config?: OllamaDriverConfig): AIDriver; /** * Chat completion with full options */ export declare function chat(messages: AIMessage[], options?: ChatCompletionOptions): Promise; /** * Stream chat completion */ export declare function streamChat(messages: AIMessage[], options?: ChatCompletionOptions): AsyncGenerator; /** * Generate text completion (non-chat) */ export declare function generate(prompt: string, options?: { model?: string system?: string template?: string context?: number[] raw?: boolean format?: 'json' images?: string[] }): Promise; /** * Create embeddings */ export declare function embed(input: string | string[], model?: string): Promise; /** * List available models */ export declare function listModels(): Promise>; /** * Pull a model from the library */ export declare function pullModel(name: string, onProgress?: (status: string, completed?: number, total?: number) => void): Promise; /** * Delete a model */ export declare function deleteModel(name: string): Promise; /** * Show model information */ export declare function showModel(_name: string): Promise<{ modelfile: string parameters: string template: string details: { format: string family: string families: string[] parameter_size: string quantization_level: string } }>; /** * Check if Ollama is running */ export declare function isRunning(): Promise; export declare const ollamaDriver: { create: typeof createOllamaDriver }; export declare const ollama: { configure: typeof configure; chat: typeof chat; streamChat: typeof streamChat; generate: typeof generate; embed: typeof embed; listModels: typeof listModels; pullModel: typeof pullModel; deleteModel: typeof deleteModel; showModel: typeof showModel; isRunning: typeof isRunning; createDriver: unknown }; export declare interface OllamaDriverConfig extends AIDriverConfig { host?: string model?: string embeddingModel?: string } export default ollama;