/** * typedFlowChart.ts — TypedScope factory for FlowChartExecutor. * * Exports createTypedScopeFactory() which creates the ScopeFactory * that wraps ScopeFacade in a TypedScope proxy. */ import type { ScopeFactory } from '../engine/types.js'; import type { TypedScope } from '../reactive/types.js'; /** * Clean stage function type for TypedScope users. * No breakPipeline parameter — use scope.$break() instead. */ export type TypedStageFunction = (scope: TypedScope) => Promise | void; /** * Creates a ScopeFactory that produces TypedScope instances. * * `flowChart()` auto-embeds this factory at build time — you rarely need * to call this directly. Use it only when constructing a custom executor with * a pre-built chart that was NOT created with `flowChart()`. * * const factory = createTypedScopeFactory(); * new FlowChartExecutor(chart, factory) * // or: new FlowChartExecutor(chart, { scopeFactory: factory }) */ export declare function createTypedScopeFactory(): ScopeFactory>;