/**
 * API Key Tester Service
 * Shared module for testing API key connectivity across different provider types.
 * Used by both manual testing (litellm-api-routes.ts) and health check service.
 */
import type { ProviderType } from '../../types/litellm-api-config.js';
/**
 * Validate API base URL format
 * Note: This is a local development tool, so we allow localhost and internal networks
 * for users who run local API gateways or proxies.
 * @param url - The URL to validate
 * @returns Object with valid flag and optional error message
 */
export declare function validateApiBaseUrl(url: string): {
    valid: boolean;
    error?: string;
};
/**
 * Result of an API key connection test
 */
export interface TestResult {
    /** Whether the API key is valid */
    valid: boolean;
    /** Error message if validation failed */
    error?: string;
    /** Latency in milliseconds (only if valid) */
    latencyMs?: number;
}
/**
 * Get default API base URL for a provider type
 */
export declare function getDefaultApiBase(providerType: ProviderType): string;
/**
 * Test API key connection by making a minimal API request
 * @param providerType - The type of provider (openai, anthropic, custom)
 * @param apiBase - The base URL for the API
 * @param apiKey - The API key to test
 * @param timeout - Timeout in milliseconds (default: 10000)
 * @returns TestResult indicating if the key is valid
 */
export declare function testApiKeyConnection(providerType: ProviderType, apiBase: string, apiKey: string, timeout?: number): Promise<TestResult>;
//# sourceMappingURL=api-key-tester.d.ts.map