import type { LLMClient } from '../types/index.js'; export declare class OllamaClient implements LLMClient { private client; private model; private enabled; private available; constructor(url: string, model: string, enabled: boolean); isAvailable(): boolean; /** * Check if Ollama is running and the configured model is pulled. * Caches the result after the first successful check. */ checkAvailability(): Promise; setApiKey(_key: string): Promise; extractJSON(systemPrompt: string, userContent: string): Promise; listModels(): Promise; pullModel(model?: string): Promise; getUsage(): { inputTokens: number; outputTokens: number; }; getModel(): string; getUrl(): string; isEnabled(): boolean; setEnabled(enabled: boolean): void; setModel(model: string): void; } /** * Repair common JSON issues from smaller LLMs and parse. * * Handles: * - Markdown code fences (```json ... ```) * - Trailing commas in arrays and objects * - Single-quoted strings → double-quoted * - Unquoted keys * - Leading/trailing text around JSON */ export declare function repairAndParseJSON(text: string): T | null; //# sourceMappingURL=ollama-client.d.ts.map