import { OllamaChatRequest, OllamaChatResponse, OllamaGenerateRequest, OllamaGenerateResponse, OllamaModelsResponse } from './types'; /** * Ollama API client utility * Handles low-level communication with Ollama server */ export declare class OllamaApiClient { private baseUrl; private timeout; constructor(baseUrl: string, timeout?: number); /** * Make a generate API call to Ollama */ generate(request: OllamaGenerateRequest): Promise; /** * Make a chat API call to Ollama */ chat(request: OllamaChatRequest): Promise; /** * Get list of available models */ getModels(): Promise; /** * Pull a model from Ollama registry */ pullModel(modelName: string): Promise; /** * Health check - test if Ollama server is running */ healthCheck(): Promise; /** * Handle API errors consistently */ private handleError; }