import { Command } from "commander"; import { connectToDaemon } from "../../utils/client.js"; import type { CommandOptions, SingleResult, OutputSchema } from "../../output/index.js"; export { resolveProviderAndModel } from "../../utils/provider-model.js"; export declare function addRunOptions(cmd: Command): Command; /** Result type for agent run command */ export interface AgentRunResult { agentId: string; status: "created" | "running" | "completed" | "timeout" | "permission" | "error"; provider: string; cwd: string; title: string | null; } /** Schema for agent run output */ export declare const agentRunSchema: OutputSchema; export interface AgentRunOptions extends CommandOptions { detach?: boolean; title?: string; name?: string; provider?: string; model?: string; thinking?: string; mode?: string; worktree?: string; base?: string; workspace?: string; image?: string[]; cwd?: string; env?: string[]; label?: string[]; waitTimeout?: string; outputSchema?: string; } type ConnectedDaemonClient = Awaited>; export interface StructuredResponseTimelineClient { fetchAgentTimeline: ConnectedDaemonClient["fetchAgentTimeline"]; } export declare function resolveStructuredResponseMessage(options: { client: StructuredResponseTimelineClient; agentId: string; lastMessage: string | null; }): Promise; export declare function runRunCommand(prompt: string, options: AgentRunOptions, _command: Command): Promise>; //# sourceMappingURL=run.d.ts.map