import type { LanguageModel } from 'ai'; import type { Flow, FlowNode } from '../types/flow.js'; import type { RunState } from '../runtime/durable/types.js'; import type { StreamPart } from '../types/stream.js'; export interface ReduceTransitionInput { fromNodeId: string; toNode: FlowNode; run: RunState; flow: Flow; model: LanguageModel; data?: Record; emit: (part: StreamPart) => void; abortSignal?: AbortSignal; } export declare function reduceTransition(input: ReduceTransitionInput): Promise;