/** * Agent discovery via dynamic import for swaig-test CLI. * * Tries multiple strategies to find an AgentBase instance: * 1. Named export `agent` * 2. Default export * 3. Any exported AgentBase instance (duck-typed) * 4. Any exported AgentBase subclass (instantiated) */ /** * Dynamically import an agent file and resolve an AgentBase instance using duck-typing heuristics. * @param agentPath - Path to the agent module file. * @param agentClass - Optional name of a specific exported class or instance to use. * @returns The resolved AgentBase instance. */ export declare function loadAgent(agentPath: string, agentClass?: string): Promise; /** * List all exported agent instances and classes in a module. * @param agentPath - Path to the agent module file. * @returns Array of export names that are AgentBase instances or subclasses. */ export declare function listAgents(agentPath: string): Promise;