/** * Print mode (single-shot): Send prompts, output result, exit. * * Used for: * - `hoocode -p "prompt"` - text output * - `hoocode --mode json "prompt"` - JSON event stream */ import type { ImageContent } from "@kolisachint/hoocode-ai"; import type { AgentSessionRuntime } from "../core/agent-session-runtime.js"; /** * Options for print mode. */ export interface PrintModeOptions { /** Output mode: "text" for final response only, "json" for all events */ mode: "text" | "json"; /** Array of additional prompts to send after initialMessage */ messages?: string[]; /** First message to send (may contain @file content) */ initialMessage?: string; /** Images to attach to the initial message */ initialImages?: ImageContent[]; /** Internal: set when this process is a spawned subagent. Enables heartbeats and result.json. */ taskId?: string; /** Hard cap on assistant turns. Near the cap the agent is asked to wrap up; at the cap it is aborted. */ maxTurns?: number; } /** * Run in print (single-shot) mode. * Sends prompts to the agent and outputs the result. */ export declare function runPrintMode(runtimeHost: AgentSessionRuntime, options: PrintModeOptions): Promise; //# sourceMappingURL=print-mode.d.ts.map