//#region src/channels/directive.d.ts /** * Workflow control-flow primitive: a single value handed to * `Workflow.resume(threadId, directive?)` (or returned from a node's * `pause(...)` resolution) carrying any combination of: * * - `goto` - jump to a named node, bypassing the edge graph. * **Destructive:** the restored frontier is discarded - * surviving dynamic tasks, completed-but-unwalked nodes, and every * pending pause record (including already-delivered pause answers) * are dropped in favour of the single goto task. Use it as an * operator escape hatch, not routine control flow. * - `resume` - value supplied to the `pause(value)` call that suspended. * - `update` - additional channel writes applied before the next step. * * The shape is **Graphorin's own design** (the name `Directive` is part * of the public API). * * @stable */ declare class Directive, TResume = unknown> { readonly goto?: string; readonly resume?: TResume; readonly update?: TUpdate; constructor(opts: DirectiveOptions); } /** * Constructor parameters for `Directive`. * * @stable */ interface DirectiveOptions, TResume = unknown> { readonly goto?: string; readonly resume?: TResume; readonly update?: TUpdate; } //#endregion export { Directive, DirectiveOptions }; //# sourceMappingURL=directive.d.ts.map