import type { JSONTextComponent } from 'sandstone/arguments/jsonTextComponent' import type { Node } from 'sandstone/core' import type { ConditionNode } from '../flow' import type { SelectorClass } from './Selector' import type { NBTSerializable } from 'sandstone/arguments' export class TextComponentClass { /** * Phantom brand property for TypeScript to identify instances of `TextComponentClass` * (and subclasses). Does not exist at runtime. */ declare readonly __textComponentClassBrand: true /** * @internal */ _toChatComponent(): JSONTextComponent { throw new Error('Not implemented') } } export class ConditionClass { /** * Phantom brand property for TypeScript to identify instances of `ConditionClass` * (and subclasses). Does not exist at runtime. */ declare readonly __conditionClassBrand: true /** * Optional commands that must run before this condition's predicate is evaluated. * Conditions that emit side-effect commands at construction (e.g. `data.equals` * building `execute store result ...`) capture them here so the visitor pass can * re-emit them at the right location — inline before the IfNode, or inside the * child MCFunction when AND/OR extracts. Optional; pure predicates leave it unset. */ preNodes?: Node[] /** * @internal */ _toMinecraftCondition(): ConditionNode { throw new Error('Not implemented') } } export class SelectorPickClass implements NBTSerializable, TextComponentClass { /** * Phantom brand property for TypeScript to distinguish between different * SelectorPickClass type parameter combinations. Does not exist at runtime. */ declare readonly __selectorPickBrand: { single: IsSingle; player: IsPlayer } /** * Phantom brand property for TypeScript to identify instances of `TextComponentClass` * (and subclasses). Does not exist at runtime. */ declare readonly __textComponentClassBrand: true /** * @internal */ _toSelector(): SelectorClass | string { throw new Error('Not implemented') } /** * @internal */ toNBT(): string { throw new Error('Not implemented') } /** * @internal */ _toChatComponent(): JSONTextComponent { throw new Error('Not implemented') } } export class ConditionTextComponentClass extends TextComponentClass implements ConditionClass { /** * Phantom brand property for TypeScript to identify instances of `TextComponentClass` * (and subclasses). Does not exist at runtime. */ declare readonly __textComponentClassBrand: true /** * Phantom brand property for TypeScript to identify instances of `ConditionClass` * (and subclasses). Does not exist at runtime. */ declare readonly __conditionClassBrand: true /** * @internal */ _toChatComponent(): JSONTextComponent { throw new Error('Not implemented') } /** * @internal */ _toMinecraftCondition(): ConditionNode { throw new Error('Not implemented') } }