import type { Agent, AgentDefinition, AgentDefinitionResolutionContext } from "./contracts.js"; /** Resolve an {@link AgentDefinition} into a runnable {@link Agent}. * * If the definition provides a `create()` escape hatch, that factory is called * with a config built from the declarative fields and `context.overrides` are * merged into the returned agent. Otherwise the declarative fields are resolved * against the supplied registries and turned into an agent via * {@link createAgent}. * * The host controls scope by which registries it passes. Missing dependencies * fail closed at resolution time, before any provider turn. */ export declare function resolveAgentDefinition(def: AgentDefinition, context: AgentDefinitionResolutionContext): Promise | Agent;