import { type AgentLoopUsage, type ActionEntry } from "../agent/production-agent.js"; import { IncompleteAgentRunError } from "../agent/run-errors.js"; import type { AgentChatEvent } from "../agent/types.js"; export interface ParsedAgentArgs { prompt?: string; engine?: string; model?: string; userEmail?: string; orgId?: string; softTimeoutMs?: number; maxIterations?: number; json: boolean; help: boolean; errors: string[]; } export interface AgentCliIo { stdout?: (text: string) => void; stderr?: (text: string) => void; env?: NodeJS.ProcessEnv; } export interface AgentCliResult { responseText: string; usage: AgentLoopUsage; events: AgentChatEvent[]; tools: string[]; failure?: { code: string; message: string; }; } export declare function toIncompleteAgentCliResult(error: IncompleteAgentRunError, partial: Omit): AgentCliResult; export declare function parseAgentArgs(args: string[]): ParsedAgentArgs; export declare function runAgent(args: string[], io?: AgentCliIo): Promise; export declare function createHeadlessBuiltinActions(): Promise>; export declare function formatAgentUsage(): string;