import { type AgentView, type AgentsClient } from "@nylorun/agents"; import type { StackDeps } from "../stack/commands.js"; /** * `--agent []`, or `--agent=`, taken out of `args`. The word after `--agent` is its id * unless it is a flag or names a directory under `cwd` (a folder to apply). */ export declare function takeAgentFlag(args: readonly string[], cwd: string): { args: string[]; agent?: { id?: string; }; }; /** Makes Agent `id` from manifest `name`, or moves it to the manifest's latest version, and says which. */ export declare function putAgent(deps: StackDeps, client: AgentsClient, label: string, id: string, name: string): Promise;