import type { Agent, AgentHooks } from "../agents/agent.js"; import type { AIGNECLIAgents } from "../aigne/type.js"; export declare function sortHooks(hooks: AgentHooks[]): AgentHooks[]; export interface CLIAgent { agent?: T; name?: string; alias?: string[]; description?: string; agents?: CLIAgent[]; } export declare function mapCliAgent({ agent, agents, ...input }: CLIAgent, transform: (input: A) => O): CLIAgent; export declare function findCliAgent(cli: AIGNECLIAgents, parent: string[] | "*", name: string): Agent | undefined; export declare function isAgent(obj: any): obj is A;