/** * [WHO]: CUSTOM_ANTHROPIC_PROVIDER, CUSTOM_OPENAI_PROVIDER, registerCustomProvider() * [FROM]: Depends on config/auth-storage, node:fs * [TO]: Consumed by core/model-registry.ts * [HERE]: core/model/custom-providers.ts - custom provider registration */ import type { AuthStorage } from "../platform/config/auth-storage.js"; export declare const CUSTOM_ANTHROPIC_PROVIDER = "custom-anthropic"; export declare const CUSTOM_OPENAI_PROVIDER = "custom-openai"; export type CustomProtocolProviderId = typeof CUSTOM_ANTHROPIC_PROVIDER | typeof CUSTOM_OPENAI_PROVIDER; type CustomProtocolProviderDefinition = { id: CustomProtocolProviderId; label: string; description: string; defaultBaseUrl: string; api: "anthropic-messages" | "openai-completions"; defaultInput: ("text" | "image")[]; }; export declare function isCustomProtocolProvider(provider: string): provider is CustomProtocolProviderId; export declare function listCustomProtocolProviders(): CustomProtocolProviderId[]; export declare function getCustomProtocolProviderDefinition(provider: CustomProtocolProviderId): CustomProtocolProviderDefinition; export declare function getCustomProtocolProviderBaseUrl(modelsPath: string, provider: CustomProtocolProviderId): string | undefined; export declare function getCustomProtocolProviderModelName(modelsPath: string, provider: CustomProtocolProviderId): string | undefined; export declare function getCustomProtocolProviderModelLimits(modelsPath: string, provider: CustomProtocolProviderId): { contextWindow?: number; maxTokens?: number; }; export declare function ensureCustomProtocolProvidersInModels(modelsPath: string): void; export declare function saveCustomProtocolProviderConfig(modelsPath: string, provider: CustomProtocolProviderId, configUpdate: { baseUrl: string; modelName: string; apiKey?: string; overrides?: { contextWindow?: number; maxTokens?: number; }; }): Promise<{ contextWindow?: number; maxTokens?: number; } | null>; export declare function saveCustomProtocolProviderApiKey(authStorage: AuthStorage, provider: CustomProtocolProviderId, apiKey: string): void; export {};