/** * @license * Copyright 2025 OSAgent OC * SPDX-License-Identifier: Apache-2.0 */ import type OpenAI from 'openai'; import { AuthType } from './contentGenerator.js'; /** * Get help text for a specific auth type */ export declare function getProviderHelpText(authType: AuthType): string; /** * Validate credentials by making a lightweight API call. * Uses the models.list() endpoint which is supported by most OpenAI-compatible APIs. * * @param client - OpenAI client instance * @param authType - The authentication type for error messages * @param timeout - Timeout in milliseconds (default 5000) * @throws CredentialValidationError if validation fails */ export declare function validateOpenAICredentials(client: OpenAI, authType: AuthType, timeout?: number): Promise; /** * Validate Ollama Cloud credentials */ export declare function validateOllamaCloudCredentials(apiKey: string, timeout?: number): Promise; /** * Validate Ollama Local by checking if server is running */ export declare function validateOllamaLocalCredentials(baseUrl: string, timeout?: number): Promise; /** * Validate GROQ credentials */ export declare function validateGroqCredentials(apiKey: string, timeout?: number): Promise;