/** * Ollama LLM client implementation for local models. */ import type { LLMClient, Message, CompletionOptions, ProviderInfo, StreamingOptions, StreamingResult } from './client.js'; export interface OllamaClientOptions { /** Base URL for Ollama API (defaults to http://localhost:11434) */ baseUrl?: string; /** Default model to use */ model?: string; /** Callback to receive token usage from each API call */ onUsage?: (inputTokens: number, outputTokens: number) => void; } /** * Ollama LLM client for local model inference. */ export declare class OllamaClient implements LLMClient { private baseUrl; private defaultModel; private logger; private onUsage?; constructor(options?: OllamaClientOptions); getProviderInfo(): ProviderInfo; chat(messages: Message[], options?: CompletionOptions): Promise; complete(prompt: string, options?: CompletionOptions): Promise; parseJSON(response: string): T; stream(prompt: string, options?: StreamingOptions): Promise; streamChat(messages: Message[], options?: StreamingOptions): Promise; /** * Check if Ollama is running and accessible. */ isAvailable(): Promise; /** * List available models. */ listModels(): Promise; } //# sourceMappingURL=ollama.d.ts.map