import type { ContentBlock } from '@wrongstack/core/types'; import type { Action, State } from './app-reducer.js'; import type { RunBlocksCapabilities } from './tui-host-capabilities.js'; import type { MutableCell, StreamSegment } from './shared-types.js'; export interface RunBlocksRefs { readonly sessionGeneration: MutableCell; readonly activeRunGeneration: MutableCell; readonly activeRunSettled: MutableCell>; readonly activeController: MutableCell; readonly interrupts: MutableCell; readonly assistantCommitted: MutableCell; readonly streamingText: MutableCell; readonly streamSegments: MutableCell; readonly pendingDelta: MutableCell; readonly flushTimer: MutableCell | null>; readonly chime: MutableCell; readonly state: MutableCell; } export interface RunBlocksHost { readonly capabilities: RunBlocksCapabilities; readonly refs: RunBlocksRefs; dispatch(action: Action): void; } /** * Create the foreground run controller. It owns one agent iteration, result * recovery, summaries, lifecycle cleanup, and FIFO queue draining; the App * shell only supplies stable capabilities and mutable lifecycle cells. */ export declare function createRunBlocksController(host: RunBlocksHost): (blocks: ContentBlock[]) => Promise; //# sourceMappingURL=run-blocks-controller.d.ts.map