import { r as DaoCoreConfig, wn as AgentModelEntryConfig } from "./types.daocore-z1fablj2.js";
import { a as ModelApi, s as ModelDefinitionConfig, u as ModelProviderConfig } from "./types.models-BXrRAuSB.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: DaoCoreConfig, ...args: TArgs) => DaoCoreConfig;
  applyConfig: (cfg: DaoCoreConfig, ...args: TArgs) => DaoCoreConfig;
};
declare function withAgentModelAliases(existing: Record<string, AgentModelEntryConfig> | undefined, aliases: readonly AgentModelAliasEntry[]): Record<string, AgentModelEntryConfig>;
declare function applyOnboardAuthAgentModelsAndProviders(cfg: DaoCoreConfig, params: {
  agentModels: Record<string, AgentModelEntryConfig>;
  providers: Record<string, ModelProviderConfig>;
}): DaoCoreConfig;
declare function applyAgentDefaultModelPrimary(cfg: DaoCoreConfig, primary: string): DaoCoreConfig;
declare function applyOpencodeZenModelDefault(cfg: DaoCoreConfig): {
  next: DaoCoreConfig;
  changed: boolean;
};
declare function applyProviderConfigWithDefaultModels(cfg: DaoCoreConfig, params: {
  agentModels: Record<string, AgentModelEntryConfig>;
  providerId: string;
  api: ModelApi;
  baseUrl: string;
  defaultModels: ModelDefinitionConfig[];
  defaultModelId?: string;
}): DaoCoreConfig;
declare function applyProviderConfigWithDefaultModel(cfg: DaoCoreConfig, params: {
  agentModels: Record<string, AgentModelEntryConfig>;
  providerId: string;
  api: ModelApi;
  baseUrl: string;
  defaultModel: ModelDefinitionConfig;
  defaultModelId?: string;
}): DaoCoreConfig;
declare function applyProviderConfigWithDefaultModelPreset(cfg: DaoCoreConfig, params: {
  providerId: string;
  api: ModelApi;
  baseUrl: string;
  defaultModel: ModelDefinitionConfig;
  defaultModelId?: string;
  aliases?: readonly AgentModelAliasEntry[];
  primaryModelRef?: string;
}): DaoCoreConfig;
declare function createDefaultModelPresetAppliers<TArgs extends unknown[]>(params: {
  resolveParams: (cfg: DaoCoreConfig, ...args: TArgs) => Omit<Parameters<typeof applyProviderConfigWithDefaultModelPreset>[1], "primaryModelRef"> | null | undefined;
  primaryModelRef: string;
}): ProviderOnboardPresetAppliers<TArgs>;
declare function applyProviderConfigWithDefaultModelsPreset(cfg: DaoCoreConfig, params: {
  providerId: string;
  api: ModelApi;
  baseUrl: string;
  defaultModels: ModelDefinitionConfig[];
  defaultModelId?: string;
  aliases?: readonly AgentModelAliasEntry[];
  primaryModelRef?: string;
}): DaoCoreConfig;
declare function createDefaultModelsPresetAppliers<TArgs extends unknown[]>(params: {
  resolveParams: (cfg: DaoCoreConfig, ...args: TArgs) => Omit<Parameters<typeof applyProviderConfigWithDefaultModelsPreset>[1], "primaryModelRef"> | null | undefined;
  primaryModelRef: string;
}): ProviderOnboardPresetAppliers<TArgs>;
declare function applyProviderConfigWithModelCatalog(cfg: DaoCoreConfig, params: {
  agentModels: Record<string, AgentModelEntryConfig>;
  providerId: string;
  api: ModelApi;
  baseUrl: string;
  catalogModels: ModelDefinitionConfig[];
}): DaoCoreConfig;
declare function applyProviderConfigWithModelCatalogPreset(cfg: DaoCoreConfig, params: {
  providerId: string;
  api: ModelApi;
  baseUrl: string;
  catalogModels: ModelDefinitionConfig[];
  aliases?: readonly AgentModelAliasEntry[];
  primaryModelRef?: string;
}): DaoCoreConfig;
declare function createModelCatalogPresetAppliers<TArgs extends unknown[]>(params: {
  resolveParams: (cfg: DaoCoreConfig, ...args: TArgs) => Omit<Parameters<typeof applyProviderConfigWithModelCatalogPreset>[1], "primaryModelRef"> | null | undefined;
  primaryModelRef: string;
}): ProviderOnboardPresetAppliers<TArgs>;
declare function ensureModelAllowlistEntry(params: {
  cfg: DaoCoreConfig;
  modelRef: string;
  defaultProvider?: string;
}): DaoCoreConfig;
//#endregion
export { withAgentModelAliases as _, applyOnboardAuthAgentModelsAndProviders as a, applyProviderConfigWithDefaultModelPreset as c, applyProviderConfigWithModelCatalog as d, applyProviderConfigWithModelCatalogPreset as f, ensureModelAllowlistEntry as g, createModelCatalogPresetAppliers as h, applyAgentDefaultModelPrimary as i, applyProviderConfigWithDefaultModels as l, createDefaultModelsPresetAppliers as m, OPENCODE_ZEN_DEFAULT_MODEL as n, applyOpencodeZenModelDefault as o, createDefaultModelPresetAppliers as p, ProviderOnboardPresetAppliers as r, applyProviderConfigWithDefaultModel as s, AgentModelAliasEntry as t, applyProviderConfigWithDefaultModelsPreset as u };