import type { AgentToolResult } from "@earendil-works/pi-agent-core"; import type { FlowDetails } from "../types/flow.js"; import { type BeginFlowLiveSessionOpts } from "../tui/flow-live-state.js"; import { type RunFlowOptions } from "./runner.js"; import type { SingleResult } from "../types/flow.js"; type FlowUpdateCallback = (partial: AgentToolResult) => void; /** Publish aggregate streaming body for a tool call. */ export declare function publishFlowLiveText(toolCallId: string, text: string): void; /** Publish per-flow-index streaming body (multi-flow sidebar). */ export declare function publishFlowLiveTextAtIndex(toolCallId: string, index: number, text: string): void; /** * Wrap host onUpdate: attach _toolCallId, publish live text, mark running. * Single place for trace + flow executor parity. */ export declare function wrapFlowOnUpdate(toolCallId: string, onUpdate?: FlowUpdateCallback): FlowUpdateCallback | undefined; export declare function runFlowWithLiveSession(toolCallId: string, liveOpts: BeginFlowLiveSessionOpts, runOpts: RunFlowOptions): Promise; export {}; //# sourceMappingURL=flow-live.d.ts.map