/** * Reading the structural nodes that open branches: `choice`, `parallel` and * `map`. Each holds sequences of its own, and the end of the block is where * they join. */ import type { ChoiceNode, MapNode, NodeReading, ParallelNode } from "./node.ts"; /** A `choice`: ordered cases, each `{ when, do }`, and a `default:` that is always written. */ export declare function readChoice({ raw, id, at, faults, continueOnFail, sequence }: NodeReading): ChoiceNode | undefined; /** A `parallel`: named branches, at least two, each a sequence. */ export declare function readParallel({ raw, id, at, faults, continueOnFail, sequence }: NodeReading): ParallelNode | undefined; /** A `map`: a literal list with `map:`, or an address with `map-from:` and a required `max:`. */ export declare function readMap({ raw, id, at, faults, continueOnFail, sequence }: NodeReading): MapNode | undefined; /** `ledger: ` opens a ledger named after the node that holds it, which is the scope a `verdict:` names. */ export declare function readLedger(value: unknown, id: string, at: string, faults: NodeReading["faults"]): boolean; //# sourceMappingURL=blocks.d.ts.map