import type { AcpRuntime, AcpRuntimeEvent, AcpRuntimeTurnInput } from "../runtime/types.js"; export type AcpTurnEventGate = { open: boolean; }; export type AcpTurnStreamOutcome = { sawOutput: boolean; sawTerminalEvent: boolean; }; export declare function consumeAcpTurnStream(params: { runtime: AcpRuntime; turn: AcpRuntimeTurnInput; eventGate: AcpTurnEventGate; onEvent?: (event: AcpRuntimeEvent) => Promise | void; onOutputEvent?: (event: Extract) => Promise | void; }): Promise;