type OpenAICompatibleValidationOptions = { provider: string; apiKey: string; baseUrl: string; model: string; signal?: AbortSignal; }; type ModelListValidationOptions = { provider: string; apiKey: string; modelsUrl: string; signal?: AbortSignal; }; /** * Validate an API key against an OpenAI-compatible chat completions endpoint. * * Performs a minimal request to verify credentials and endpoint access. */ export declare function validateOpenAICompatibleApiKey(options: OpenAICompatibleValidationOptions): Promise; /** * Validate an API key against a provider models endpoint. * * Useful for providers where access to specific models may vary by plan and * should not block key validation. * * A 200 status alone is NOT accepted: a captive portal, misrouting proxy, or * broken gateway can answer 200 with an HTML page or an empty JSON object, and * accepting the key on status alone would store a credential that was never * actually checked. The body must parse as JSON and carry a recognizable model * list before the key is considered validated. */ export declare function validateApiKeyAgainstModelsEndpoint(options: ModelListValidationOptions): Promise; export {};