import { r as KlawConfig } from "./types.klaw-xKUw_Rz7.js"; import { o as ModelDefinitionConfig } from "./types.models-Cae06tWO.js"; import { i as AuthProfileCredential } from "./types-ox6Zbtju.js"; import { i as WizardPrompter } from "./prompts-BamwNu0a.js"; import { At as ProviderAuthResult, Ot as ProviderAuthMethodNonInteractiveContext, Ut as ProviderDiscoveryContext } from "./types-CAmC_cW72.js"; //#region src/agents/self-hosted-provider-defaults.d.ts declare const SELF_HOSTED_DEFAULT_CONTEXT_WINDOW = 128000; declare const SELF_HOSTED_DEFAULT_MAX_TOKENS = 8192; declare const SELF_HOSTED_DEFAULT_COST: { input: number; output: number; cacheRead: number; cacheWrite: number; }; //#endregion //#region src/plugins/provider-self-hosted-setup.d.ts declare function discoverOpenAICompatibleLocalModels(params: { baseUrl: string; apiKey?: string; label: string; contextWindow?: number; maxTokens?: number; env?: NodeJS.ProcessEnv; }): Promise; declare function applyProviderDefaultModel(cfg: KlawConfig, modelRef: string): KlawConfig; type OpenAICompatibleSelfHostedProviderSetupParams = { cfg: KlawConfig; prompter: WizardPrompter; providerId: string; providerLabel: string; defaultBaseUrl: string; defaultApiKeyEnvVar: string; modelPlaceholder: string; input?: Array<"text" | "image">; reasoning?: boolean; contextWindow?: number; maxTokens?: number; }; type OpenAICompatibleSelfHostedProviderPromptResult = { config: KlawConfig; credential: AuthProfileCredential; modelId: string; modelRef: string; profileId: string; }; declare function promptAndConfigureOpenAICompatibleSelfHostedProvider(params: OpenAICompatibleSelfHostedProviderSetupParams): Promise; declare function promptAndConfigureOpenAICompatibleSelfHostedProviderAuth(params: OpenAICompatibleSelfHostedProviderSetupParams): Promise; declare function discoverOpenAICompatibleSelfHostedProvider>(params: { ctx: ProviderDiscoveryContext; providerId: string; buildProvider: (params: { apiKey?: string; baseUrl?: string; }) => Promise; }): Promise<{ provider: T & { apiKey: string; }; } | null>; declare function configureOpenAICompatibleSelfHostedProviderNonInteractive(params: { ctx: ProviderAuthMethodNonInteractiveContext; providerId: string; providerLabel: string; defaultBaseUrl: string; defaultApiKeyEnvVar: string; modelPlaceholder: string; input?: Array<"text" | "image">; reasoning?: boolean; contextWindow?: number; maxTokens?: number; }): Promise; //#endregion export { promptAndConfigureOpenAICompatibleSelfHostedProvider as a, SELF_HOSTED_DEFAULT_COST as c, discoverOpenAICompatibleSelfHostedProvider as i, SELF_HOSTED_DEFAULT_MAX_TOKENS as l, configureOpenAICompatibleSelfHostedProviderNonInteractive as n, promptAndConfigureOpenAICompatibleSelfHostedProviderAuth as o, discoverOpenAICompatibleLocalModels as r, SELF_HOSTED_DEFAULT_CONTEXT_WINDOW as s, applyProviderDefaultModel as t };