import type { AuthProfileCredential } from "../agents/auth-profiles/types.js"; import type { ModelDefinitionConfig } from "../config/types.models.js"; import type { OpenClawConfig } from "../config/types.openclaw.js"; import type { WizardPrompter } from "../wizard/prompts.js"; import type { ProviderDiscoveryContext, ProviderAuthResult, ProviderAuthMethodNonInteractiveContext } from "./types.js"; export { SELF_HOSTED_DEFAULT_CONTEXT_WINDOW, SELF_HOSTED_DEFAULT_COST, SELF_HOSTED_DEFAULT_MAX_TOKENS, } from "../agents/self-hosted-provider-defaults.js"; export declare function discoverOpenAICompatibleLocalModels(params: { baseUrl: string; apiKey?: string; label: string; contextWindow?: number; maxTokens?: number; env?: NodeJS.ProcessEnv; }): Promise; export 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; }; export declare function promptAndConfigureOpenAICompatibleSelfHostedProvider(params: OpenAICompatibleSelfHostedProviderSetupParams): Promise; export declare function promptAndConfigureOpenAICompatibleSelfHostedProviderAuth(params: OpenAICompatibleSelfHostedProviderSetupParams): Promise; export declare function discoverOpenAICompatibleSelfHostedProvider>(params: { ctx: ProviderDiscoveryContext; providerId: string; buildProvider: (params: { apiKey?: string; }) => Promise; }): Promise<{ provider: T & { apiKey: string; }; } | null>; export 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;