/** * Ollama Client * Handles communication with local Ollama instance for AI analysis */ import type { ClassInfo } from './scanner.js'; /** * Options for OllamaClient */ export interface OllamaClientOptions { model?: string; host?: string; } /** * OllamaClient - Wrapper for Ollama API with error handling */ export declare class OllamaClient { private model; private host; private client; constructor(options?: OllamaClientOptions); /** * Check if Ollama is running and model is available * @returns True if connected and model available */ checkConnection(): Promise; /** * Send a prompt to Ollama and get response * @param systemPrompt - System instructions * @param userPrompt - User content (PHP code) * @returns AI response */ chat(systemPrompt: string, userPrompt: string): Promise; /** * Analyze PHP code for deprecations * @param code - PHP source code * @param phpVersion - Target PHP version * @returns Analysis result in Markdown */ analyzeCode(code: string, phpVersion?: string): Promise; /** * Get available PHP features based on version * @param version - PHP major version number * @returns String listing available features */ private getPhpFeatures; /** * Generate PHPUnit tests for a class * @param code - PHP class source code * @param classInfo - Extracted class information * @returns PHPUnit test code */ generateTests(code: string, classInfo: ClassInfo): Promise; /** * Generate DocBlock documentation * @param code - PHP source code * @returns Code with DocBlocks added */ generateDocBlocks(code: string): Promise; /** * Generate OpenAPI specification from PHP controller * @param code - PHP controller source code * @returns OpenAPI YAML specification */ generateOpenAPI(code: string): Promise; } //# sourceMappingURL=ollama.d.ts.map