/** * Provider connection testing utilities for Foundation * Tests connectivity to LLM providers * * Updated February 2026 to include all providers. */ /** * Connection test result */ export interface ConnectionTestResult { success: boolean; latencyMs: number; error?: string; models?: string[]; } /** * Test Anthropic API connection */ export declare function testAnthropicConnection(apiKey: string, baseUrl?: string): Promise; /** * Test OpenAI API connection */ export declare function testOpenAIConnection(apiKey: string, baseUrl?: string): Promise; /** * Test Google Gemini API connection */ export declare function testGeminiConnection(apiKey: string, baseUrl?: string): Promise; /** * Test DeepSeek API connection */ export declare function testDeepSeekConnection(apiKey: string, baseUrl?: string): Promise; /** * Test Z.AI (GLM) API connection */ export declare function testZaiConnection(apiKey: string, baseUrl?: string): Promise; /** * Test Moonshot (Kimi) API connection */ export declare function testKimiConnection(apiKey: string, baseUrl?: string): Promise; /** * Test Kimi Code API connection * * Kimi Code is a separate endpoint from the regular Moonshot API. * CRITICAL: Requires User-Agent: claude-code/1.0 header or requests are rejected. */ export declare function testKimiCodeConnection(apiKey: string, baseUrl?: string): Promise; /** * Test Perplexity API connection * Note: Perplexity does NOT have a /models endpoint, so we use chat completion test */ export declare function testPerplexityConnection(apiKey: string, baseUrl?: string): Promise; /** * Test OpenRouter API connection */ export declare function testOpenRouterConnection(apiKey: string, baseUrl?: string): Promise; /** * Test Groq API connection */ export declare function testGroqConnection(apiKey: string, baseUrl?: string): Promise; /** * Test Together AI API connection */ export declare function testTogetherConnection(apiKey: string, baseUrl?: string): Promise; /** * Test Fireworks AI API connection */ export declare function testFireworksConnection(apiKey: string, baseUrl?: string): Promise; /** * Test Ollama connection and fetch available models */ export declare function testOllamaConnection(baseUrl?: string): Promise; /** * Display spinner while testing connection */ export declare function testConnectionWithSpinner(providerName: string, testFn: () => Promise): Promise; //# sourceMappingURL=test-connection.d.ts.map