import type { AnyTool } from '../../types/effectTool.js'; import type { Flow, FlowState } from '../../types/flow.js'; import type { PredicateContext } from './predicate.js'; import { type UnsupportedSchemaMode } from './jsonSchemaAdapter.js'; import type { FlowDefinition } from './types.js'; export declare const FLOW_INPUT_KEY = "__input"; export declare const FLOW_RESULTS_KEY = "__results"; export interface FlowRehydrationDeps { tools: (id: string) => AnyTool | undefined; mode?: 'strict' | 'lenient'; onUnsupportedSchema?: UnsupportedSchemaMode; requestContext?: () => unknown; } export declare function recordNodeResult(state: FlowState, nodeId: string, value: unknown): void; export declare function scopeFromState(state: FlowState, deps: FlowRehydrationDeps): PredicateContext; export declare function rehydrateFlow(def: FlowDefinition, deps: FlowRehydrationDeps): Flow;