/** * Provider configs (MiniMax and other custom providers) live in * `~/.peaks/providers.json` — NOT in the slim `~/.peaks/config.json`. * The slim config only carries `version` + `ocr.llm.*`; provider * model selection, base URLs, and API keys live here in a dedicated * sidecar so the user has one discoverable location for runtime * model-routing settings. * * This module is the only owner of the providers.json file. Reads * from `~/.peaks/config.json.providers` are tolerated as a one-time * back-compat fallback so an unmigrated 1.x-style config still * returns the user's existing MiniMax configuration; the next * `setMiniMaxProviderConfig` call promotes the value into * `~/.peaks/providers.json` and the legacy `~/.peaks/config.json` * field is stripped by `loadGlobalConfig` governance. */ export declare const MINIMAX_API_HOST = "api.minimaxi.com"; export type MiniMaxProviderConfig = { model?: string; baseUrl?: string; apiKey?: string; }; export type ProviderModelConfig = MiniMaxProviderConfig; export type ModelProviderId = 'minimax' | string; export type ExecutionModelId = string; export type ModelPreference = 'haiku' | 'sonnet' | 'opus' | 'minimax'; export type ModelProviderConfig = { minimax?: MiniMaxProviderConfig; [providerId: string]: ProviderModelConfig | undefined; }; export declare function isValidProviderBaseUrl(value: string): boolean; export declare function isValidMiniMaxBaseUrl(value: string): boolean; export declare function validateMiniMaxBaseUrl(value: unknown): void; export declare function validateProviderBaseUrl(value: unknown): void; export declare function validateModelProviderConfig(providers: ModelProviderConfig): void; export type MiniMaxProviderStatus = { provider: 'minimax'; configured: boolean; baseUrlConfigured: boolean; apiKeyConfigured: boolean; storage: 'sidecar-v1'; nextActions: string[]; }; export declare function getMiniMaxProviderConfig(): MiniMaxProviderConfig; export declare function getMiniMaxProviderStatus(): MiniMaxProviderStatus; export declare function setMiniMaxProviderConfig(input: MiniMaxProviderConfig): MiniMaxProviderStatus; export declare function getAllProviders(): ModelProviderConfig; export declare function setProviderConfig(providerId: string, input: ProviderModelConfig): ModelProviderConfig;