import { AIInterface } from '../shared/types'; /** * Re-export the universal getAI function */ export { getAI } from '../shared/factory'; /** * Node.js-enhanced auto-detection of AI provider based on available credentials * Includes support for environment variables * * Supports both HAVE_AI_* environment variables and provider-specific variables: * - HAVE_AI_PROVIDER / HAVE_AI_TYPE → provider type * - HAVE_AI_API_KEY → fallback API key * - LITELLM_BASE_URL / LITELLM_API_KEY / LITELLM_ADMIN_API_KEY → LiteLLM-specific gateway config * - BIFROST_BASE_URL / BIFROST_API_KEY / BIFROST_ADMIN_URL / BIFROST_ADMIN_USER / BIFROST_ADMIN_PASSWORD → Bifrost gateway config * - OLLAMA_HOST / OLLAMA_BASE_URL / OLLAMA_API_KEY → Ollama host/auth config * - OPENAI_API_KEY → OpenAI-specific key * - ANTHROPIC_API_KEY → Anthropic-specific key * - GEMINI_API_KEY / GOOGLE_API_KEY → Gemini-specific key * - HF_TOKEN → Hugging Face token * - AWS_* → AWS Bedrock credentials * - OPENAI_COMPAT_VIDEO_BASE_URL / OPENAI_COMPAT_VIDEO_API_KEY → openai-compat-video gateway config (checked last) * - MODELARK_API_KEY / ARK_API_KEY / MODELARK_BASE_URL → BytePlus ModelArk (Seedance) config (checked last) * - SEEVIO_API_KEY / SEEVIO_BASE_URL → Seevio Seedance config (checked last) * * The two video-only provider types above are intentionally checked *after* * every general-purpose provider: they throw `NOT_IMPLEMENTED` for chat() * and everything else, so their env signals must never hijack a bare * `getAIAuto()` call away from a general-purpose provider. Prefer explicit * `type: 'byteplus-modelark'` / `type: 'openai-compat-video'` / `type: 'seevio'` when you want * one of these on purpose. * * @param options - Configuration options that may contain provider-specific credentials * @returns Promise resolving to an AI provider instance * @throws ValidationError if no provider can be detected from the options */ export declare function getAIAuto(options?: Record): Promise; //# sourceMappingURL=factory.d.ts.map