import { i as NodmixConfig, in as AgentModelEntryConfig } from "./types.nodmix-B9QJSty6.js";
import { a as ModelApi, f as ModelProviderConfig, s as ModelDefinitionConfig } from "./types.models-B7DJ1cTJ.js";
import { n as resolveAgentModelPrimaryValue, t as resolveAgentModelFallbackValues } from "./model-input-CO9xb1HJ.js";

//#region src/plugin-sdk/provider-onboard.d.ts
type AgentModelAliasEntry = string | {
  modelRef: string;
  alias?: string;
};
declare const OPENCODE_ZEN_DEFAULT_MODEL = "opencode/claude-opus-4-6";
type ProviderOnboardPresetAppliers<TArgs extends unknown[]> = {
  applyProviderConfig: (cfg: NodmixConfig, ...args: TArgs) => NodmixConfig;
  applyConfig: (cfg: NodmixConfig, ...args: TArgs) => NodmixConfig;
};
declare function withAgentModelAliases(existing: Record<string, AgentModelEntryConfig> | undefined, aliases: readonly AgentModelAliasEntry[]): Record<string, AgentModelEntryConfig>;
declare function applyOnboardAuthAgentModelsAndProviders(cfg: NodmixConfig, params: {
  agentModels: Record<string, AgentModelEntryConfig>;
  providers: Record<string, ModelProviderConfig>;
}): NodmixConfig;
declare function applyAgentDefaultModelPrimary(cfg: NodmixConfig, primary: string): NodmixConfig;
declare function applyOpencodeZenModelDefault(cfg: NodmixConfig): {
  next: NodmixConfig;
  changed: boolean;
};
declare function applyProviderConfigWithDefaultModels(cfg: NodmixConfig, params: {
  agentModels: Record<string, AgentModelEntryConfig>;
  providerId: string;
  api: ModelApi;
  baseUrl: string;
  defaultModels: ModelDefinitionConfig[];
  defaultModelId?: string;
}): NodmixConfig;
declare function applyProviderConfigWithDefaultModel(cfg: NodmixConfig, params: {
  agentModels: Record<string, AgentModelEntryConfig>;
  providerId: string;
  api: ModelApi;
  baseUrl: string;
  defaultModel: ModelDefinitionConfig;
  defaultModelId?: string;
}): NodmixConfig;
declare function applyProviderConfigWithDefaultModelPreset(cfg: NodmixConfig, params: {
  providerId: string;
  api: ModelApi;
  baseUrl: string;
  defaultModel: ModelDefinitionConfig;
  defaultModelId?: string;
  aliases?: readonly AgentModelAliasEntry[];
  primaryModelRef?: string;
}): NodmixConfig;
declare function createDefaultModelPresetAppliers<TArgs extends unknown[]>(params: {
  resolveParams: (cfg: NodmixConfig, ...args: TArgs) => Omit<Parameters<typeof applyProviderConfigWithDefaultModelPreset>[1], "primaryModelRef"> | null | undefined;
  primaryModelRef: string;
}): ProviderOnboardPresetAppliers<TArgs>;
declare function applyProviderConfigWithDefaultModelsPreset(cfg: NodmixConfig, params: {
  providerId: string;
  api: ModelApi;
  baseUrl: string;
  defaultModels: ModelDefinitionConfig[];
  defaultModelId?: string;
  aliases?: readonly AgentModelAliasEntry[];
  primaryModelRef?: string;
}): NodmixConfig;
declare function createDefaultModelsPresetAppliers<TArgs extends unknown[]>(params: {
  resolveParams: (cfg: NodmixConfig, ...args: TArgs) => Omit<Parameters<typeof applyProviderConfigWithDefaultModelsPreset>[1], "primaryModelRef"> | null | undefined;
  primaryModelRef: string;
}): ProviderOnboardPresetAppliers<TArgs>;
declare function applyProviderConfigWithModelCatalog(cfg: NodmixConfig, params: {
  agentModels: Record<string, AgentModelEntryConfig>;
  providerId: string;
  api: ModelApi;
  baseUrl: string;
  catalogModels: ModelDefinitionConfig[];
}): NodmixConfig;
declare function applyProviderConfigWithModelCatalogPreset(cfg: NodmixConfig, params: {
  providerId: string;
  api: ModelApi;
  baseUrl: string;
  catalogModels: ModelDefinitionConfig[];
  aliases?: readonly AgentModelAliasEntry[];
  primaryModelRef?: string;
}): NodmixConfig;
declare function createModelCatalogPresetAppliers<TArgs extends unknown[]>(params: {
  resolveParams: (cfg: NodmixConfig, ...args: TArgs) => Omit<Parameters<typeof applyProviderConfigWithModelCatalogPreset>[1], "primaryModelRef"> | null | undefined;
  primaryModelRef: string;
}): ProviderOnboardPresetAppliers<TArgs>;
declare function ensureModelAllowlistEntry(params: {
  cfg: NodmixConfig;
  modelRef: string;
  defaultProvider?: string;
}): NodmixConfig;
//#endregion
export { AgentModelAliasEntry, type ModelApi, type ModelDefinitionConfig, type ModelProviderConfig, type NodmixConfig, OPENCODE_ZEN_DEFAULT_MODEL, ProviderOnboardPresetAppliers, applyAgentDefaultModelPrimary, applyOnboardAuthAgentModelsAndProviders, applyOpencodeZenModelDefault, applyProviderConfigWithDefaultModel, applyProviderConfigWithDefaultModelPreset, applyProviderConfigWithDefaultModels, applyProviderConfigWithDefaultModelsPreset, applyProviderConfigWithModelCatalog, applyProviderConfigWithModelCatalogPreset, createDefaultModelPresetAppliers, createDefaultModelsPresetAppliers, createModelCatalogPresetAppliers, ensureModelAllowlistEntry, resolveAgentModelFallbackValues, resolveAgentModelPrimaryValue, withAgentModelAliases };