import { AgentProjectionRenderBlock } from './request.cjs'; interface NodeStreamEvent { event: "node_stream"; run_id: string; node_id: null | string; dispatch_id?: string; item_index?: number; kind: "chunk" | "context_analysis" | "media" | "phase" | "reasoning" | "record_update" | "render_block" | "resource_changed" | "tool" | "warning"; delta: string; stream_seq: number; ts: string; chunks_received: number; chars_streamed: number; frame_id?: null | string; frame_index?: number; frame_count?: number; block_shadowed?: boolean; } interface WorkflowNodeStreamEvent { run_id: string; node_id?: null | string; kind: NodeStreamEvent["kind"]; delta: string; stream_seq: number; ts: string; chunks_received: number; chars_streamed: number; frame_id?: null | string; frame_index?: number; frame_count?: number; block_shadowed?: boolean; } interface WorkflowProjectionLimits { maxOpenFrameSets: number; maxFramesPerBlock: number; maxBytesPerBlock: number; } declare const DEFAULT_WORKFLOW_PROJECTION_LIMITS: Readonly; interface WorkflowRenderFrameSet { frameCount: number; slices: Record; byteLength: number; } type WorkflowRenderBlockIssueCode = "byte_limit_exceeded" | "frame_count_mismatch" | "frame_limit_exceeded" | "invalid_frame_metadata" | "invalid_render_block" | "malformed_json" | "open_frame_limit_exceeded"; interface WorkflowRenderBlockIssue { code: WorkflowRenderBlockIssueCode; frameId: null | string; streamSeq: number; message: string; } interface WorkflowNodeProjection { runId: string; nodeId: string; answer: string; reasoning: string; blockShadowed: boolean; renderBlocks: Record; renderBlockOrder: string[]; openFrames: Record; limits: WorkflowProjectionLimits; lastRenderBlockIssue: WorkflowRenderBlockIssue | null; chunksReceived: number; charsStreamed: number; lastStreamingTs: null | string; lastPhase: null | string; lastTool: null | string; lastWarning: null | string; lastTransportSeq: number; } declare function createWorkflowNodeProjection(input: { runId: string; nodeId: string; limits?: Partial; }): WorkflowNodeProjection; declare function projectWorkflowNodeEvent(current: WorkflowNodeProjection, event: WorkflowNodeStreamEvent): WorkflowNodeProjection; export { DEFAULT_WORKFLOW_PROJECTION_LIMITS, createWorkflowNodeProjection, projectWorkflowNodeEvent }; export type { WorkflowNodeProjection, WorkflowNodeStreamEvent, WorkflowProjectionLimits, WorkflowRenderBlockIssue, WorkflowRenderBlockIssueCode, WorkflowRenderFrameSet };