import { type ICAPIModelBilling } from "./meta/agentModelMeta.js"; import type { ConfigPropertySchema, JsonPrimitive, ModelSelection } from "./state/protocol/state.js"; /** Model-configuration key for the selected context-window size, in tokens. */ export declare const ContextSizeConfigKey = "contextSize"; export declare const agentModelConfigurationReportKey = "vscode.modelConfiguration"; export interface IAgentModelConfigurationOptions { readonly defaults: Readonly>; readonly readOnly: readonly string[]; readonly managedDefaults?: readonly string[]; readonly choices?: Readonly>; } /** A server-owned, chat-scoped snapshot; personal preferences are not stored here. */ export interface IAgentModelConfigurationReport { readonly models: Readonly>; readonly current?: ModelSelection; } /** Reads only the current chat's report, including explicit removal across JSON serialization. */ export declare function readAgentModelConfigurationReport(config: Readonly> | undefined, chat: string): IAgentModelConfigurationReport | undefined; /** Scalar provenance survives ModelSelection.config without becoming an SDK model option. */ export declare function modelConfigurationSourceKey(key: string): string; export declare function isModelConfigurationDefault(configuration: Readonly> | undefined, key: string): boolean; /** * Synthesizes the shared context-size picker property for a CAPI model with a * distinct long-context tier. */ export declare function createContextSizeConfigSchemaProperty(billing: ICAPIModelBilling | undefined): ConfigPropertySchema | undefined; /** * Synthesizes the shared context-size picker property from provider-owned limits. */ export declare function createContextSizeConfigSchemaPropertyFromLimits(defaultMax: number | undefined, longContextMax: number | undefined, selectedDefault?: number | undefined): ConfigPropertySchema | undefined; /** Reads a finite, positive context-window selection from a model config. */ export declare function getModelContextSize(model: ModelSelection | undefined): number | undefined;