import type { AgentConfig } from "@opencode-ai/sdk"; import type { CustomAgentConfig } from "../config/schema"; import type { AgentPromptMetadata } from "./types"; import type { ResolveSkillsFn } from "./agent-builder"; export interface BuildCustomAgentOptions { resolveSkills?: ResolveSkillsFn; disabledSkills?: Set; availableModels?: Set; systemDefaultModel?: string; uiSelectedModel?: string; /** Base directory for resolving relative prompt_file paths */ configDir?: string; } /** * Build an AgentConfig from a custom agent definition. * Handles prompt resolution (inline, file, or skills), model resolution, * and display name registration. */ export declare function buildCustomAgent(name: string, config: CustomAgentConfig, options?: BuildCustomAgentOptions): AgentConfig; /** * Build AgentPromptMetadata for a custom agent from its config. * Used to integrate custom agents into Loom's delegation table. */ export declare function buildCustomAgentMetadata(name: string, config: CustomAgentConfig): AgentPromptMetadata;