import type { AgentConfig as SDKAgentConfig } from '@opencode-ai/sdk/v2'; import { SUBAGENT_NAMES } from '../config'; import type { RuntimeConfig } from '../config/runtime'; import { type AgentDefinition } from './orchestrator'; export { ensureCouncilCompactionException } from './council'; export type { AgentDefinition } from './orchestrator'; export declare function resolvePrimaryModelValue(value: unknown): string | undefined; /** * Apply model inheritance to the final host agent config after the host layer * has been merged. This clears stale host models for `session` inheritance, * which cannot be handled by the agent definition alone. */ export declare function applyModelInheritanceToConfig(configAgent: Record, runtime: RuntimeConfig): void; export type SubagentName = (typeof SUBAGENT_NAMES)[number]; export declare function isSubagent(name: string): name is SubagentName; /** * Create all agent definitions with optional configuration overrides. * Instantiates the orchestrator and all subagents, applying user config and defaults. * * @param runtime - Runtime configuration interface (plugin layer, preset-aware) * @param options - Optional options including projectDirectory and hostFlavor * @returns Array of agent definitions (orchestrator first, then subagents) */ export declare function createAgents(runtime: RuntimeConfig, options?: { projectDirectory?: string; hostFlavor?: string; }): AgentDefinition[]; /** * Get agent configurations formatted for the OpenCode SDK. * Converts agent definitions to SDK config format and applies classification metadata. * * @param runtime - Runtime configuration interface (plugin layer, preset-aware) * @param options - Optional options including projectDirectory and hostFlavor * @returns Record mapping agent names to their SDK configurations */ export declare function getAgentConfigs(runtime: RuntimeConfig, options?: { projectDirectory?: string; hostFlavor?: string; }): Record;