import type { JSONTextComponent, MultiplePlayersArgumentOf } from '../arguments/index.js'; import type { SandstoneCore } from '../core/index.js'; import { Node } from '../core/index.js'; import type { DataPointClass, JSONTextComponentClass } from '../variables/index.js'; /** * Marker node emitted by `Flow#throw()`. * * Holds all the data needed by `ThrowTransformationVisitor` to materialize the * actual tellraw / data modify / return 1 commands — and to wire propagation up * through enclosing executes. * * Never serialized directly: `getValue()` returns `null`, so the node is filtered * out of the output. The visitor removes it from the AST and inserts the real * commands in its place. */ export declare class ThrowNode extends Node { /** The fully-built error component (including the yellow header + function/node footer). */ fullError: JSONTextComponent; /** Selector to broadcast to (`@a` default), or `false` to skip the broadcast entirely. */ broadcast: MultiplePlayersArgumentOf | false | undefined; /** * Storage target. `undefined` → allocate a fresh anonymous `DataVariable`. * `false` → don't store at all (return value is the `JSONTextComponentClass`). * `DataPointClass` → set this point with the serialized error. */ dataPoint: DataPointClass | JSONTextComponentClass | false | undefined; constructor(sandstoneCore: SandstoneCore, /** The fully-built error component (including the yellow header + function/node footer). */ fullError: JSONTextComponent, /** Selector to broadcast to (`@a` default), or `false` to skip the broadcast entirely. */ broadcast: MultiplePlayersArgumentOf | false | undefined, /** * Storage target. `undefined` → allocate a fresh anonymous `DataVariable`. * `false` → don't store at all (return value is the `JSONTextComponentClass`). * `DataPointClass` → set this point with the serialized error. */ dataPoint: DataPointClass | JSONTextComponentClass | false | undefined); getValue(): null; } //# sourceMappingURL=throw.d.ts.map