type OpenAICompatibleValidationOptions = { provider: string; apiKey: string; baseUrl: string; model: string; signal?: AbortSignal; fetch?: typeof globalThis.fetch; requireInferenceResponse?: boolean; timeoutMs?: number; }; type ModelListValidationOptions = { provider: string; apiKey: string; modelsUrl: string; signal?: AbortSignal; fetch?: typeof globalThis.fetch; timeoutMs?: number; }; /** * 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 a provider models endpoint's reachability and response shape. * * Useful for providers where access to specific models may vary by plan and * should not block login; an available model list is not proof that an * authenticated inference request will succeed for the supplied key. * * 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. * The body must parse as JSON and carry a recognizable model list before the * endpoint is considered reachable. This catalog check is not proof that * authenticated inference is entitled to use the supplied key. */ export declare function validateApiKeyAgainstModelsEndpoint(options: ModelListValidationOptions): Promise; export {};