/** * @toolplex/ai-engine - Provider Factory * * Central provider management for the AI engine. * Handles instantiation of both built-in AI SDK providers and custom providers. */ import type { AIProvider, ProviderCredentials } from "../types/index.js"; import type { LoggerAdapter } from "../adapters/types.js"; export { toolplexUsageMap } from "./toolplex.js"; export interface GetProviderOptions { logger?: LoggerAdapter; clientVersion?: string; } /** * Get provider instance by ID * * @param providerId - Provider identifier (e.g., 'toolplex', 'openai', 'anthropic') * @param credentials - API keys and credentials * @param options - Optional logger and client version * @returns Provider instance */ export declare function getProvider(providerId: string, credentials: ProviderCredentials, options?: GetProviderOptions): AIProvider; /** * Get model instance for streaming * * @param modelId - Full model identifier (e.g., 'anthropic/claude-sonnet-4') * @param credentials - API keys and credentials * @param options - Optional logger and client version * @returns Language model instance ready for streamText() */ export declare function getModel(modelId: string, credentials: ProviderCredentials, options?: GetProviderOptions): any; /** * Check if a provider is available (has required credentials) * * @param providerId - Provider identifier * @param credentials - API keys and credentials * @returns True if provider can be instantiated */ export declare function isProviderAvailable(providerId: string, credentials: ProviderCredentials): boolean; //# sourceMappingURL=index.d.ts.map