import type { SandstoneCore } from '../core/index.js'; import type { CommandNode } from '../core/nodes.js'; import type { SandstonePack } from '../pack/index.js'; import type { SandstoneCommands } from './commands.js'; type InstanceTypeOr CommandNode) | undefined, X> = NODE extends undefined ? X : NODE extends new (...args: any) => infer R ? R : never; /** * This is what final commands return. * It has a protected access to the node that was executed, allowing users to access the node's properties. * * This should only be used by users for advanced usage. */ export declare class FinalCommandOutput { protected node: CommandNode; constructor(node: CommandNode); } export type CommandNodeConstructor = new (...args: any) => CommandNode; export type CommandArgumentsConstructor = new (...args: any) => any; export declare abstract class CommandArguments { protected sandstonePack: SandstonePack; protected readonly isMacro: boolean; protected previousNode?: CommandNode | undefined; protected autoCommit: boolean; protected NodeType?: NODE; protected sandstoneCore: SandstoneCore; protected sandstoneCommands: SandstoneCommands; constructor(sandstonePack: SandstonePack, isMacro?: boolean, previousNode?: CommandNode | undefined, autoCommit?: boolean); protected getNode: () => InstanceTypeOr; protected finalCommand: (args?: NODE extends CommandNodeConstructor ? InstanceType['args'] : any[], currentNode?: InstanceTypeOr | undefined) => FinalCommandOutput; protected subCommand: (args: NODE extends CommandNodeConstructor ? InstanceType['args'] : any[], NextArgumentType: NEXT_ARGUMENT, executable?: boolean, additionalNextArgs?: unknown[], currentNode?: InstanceTypeOr | undefined) => NEXT_ARGUMENT extends CommandArgumentsConstructor ? InstanceType : FinalCommandOutput; } export {}; //# sourceMappingURL=helpers.d.ts.map