/**
 * Headless ACP runner.
 *
 * Glue between the `agents run <agent> "prompt" --acp` command and the ACP
 * client. Emits either a human-readable stream of agent messages or newline-
 * delimited JSON events, depending on `--json`.
 */
import type { AgentId } from '../types.js';
import type { ExecMode } from '../exec.js';
export interface HeadlessAcpOptions {
    agent: AgentId;
    prompt: string;
    cwd: string;
    mode: ExecMode;
    json: boolean;
}
/** Runs a prompt turn over ACP, streaming output to stdout per `json` mode. */
export declare function runAcpHeadless(opts: HeadlessAcpOptions): Promise<number>;
