import { i as OpenClawConfig } from "./types.openclaw-CpnoYlBx.js"; import { s as ModelDefinitionConfig } from "./types.models-Aj4YxL2N.js"; import { i as AuthProfileCredential } from "./types-DNDRLfm4.js"; import { i as WizardPrompter } from "./prompts-DgKIGa-v.js"; import { Wt as ProviderDiscoveryContext, jt as ProviderAuthResult, kt as ProviderAuthMethodNonInteractiveContext } from "./types-BftTUA7h.js"; //#region src/agents/self-hosted-provider-defaults.d.ts /** * Conservative defaults for self-hosted providers when the model catalog * cannot supply pricing or token limits. */ /** Default context window used for self-hosted provider catalog entries. */ declare const SELF_HOSTED_DEFAULT_CONTEXT_WINDOW = 128000; /** Default output-token cap used for self-hosted provider catalog entries. */ declare const SELF_HOSTED_DEFAULT_MAX_TOKENS = 8192; /** Zero-cost pricing used for self-hosted provider catalog entries. */ 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: OpenClawConfig, modelRef: string): OpenClawConfig; type OpenAICompatibleSelfHostedProviderSetupParams = { cfg: OpenClawConfig; 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: OpenClawConfig; 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 };