import { DesignerNode } from "../space/event/stream/design/StreamDesign"; import { StreamNode } from "../space/execution"; export type DebugCommand = ContinueDebugCommand | StepBackDebugCommand | StepForwardDebugCommand | SetValueDebugCommand | ReplaceNodeDebugCommand | RestartDebugCommand; export declare enum CommandType { CONTINUE = "CONTINUE", STEP_BACK = "STEP_BACK", STEP_FORWARD = "STEP_FORWARD", SET_VALUE = "SET_VALUE", REPLACE_NODE = "REPLACE_NODE", RESTART = "RESTART" } export type ContinueDebugCommand = { type: CommandType.CONTINUE; }; export type StepBackDebugCommand = { type: CommandType.STEP_BACK; }; export type StepForwardDebugCommand = { type: CommandType.STEP_FORWARD; }; export type SetValueDebugCommand = { type: CommandType.SET_VALUE; uuid: string; key: string; value: unknown; }; export type ReplaceNodeDebugCommand = { type: CommandType.REPLACE_NODE; node: DesignerNode; }; export type RestartDebugCommand = { type: CommandType.RESTART; }; export type IssuedDebugCommand = IssuedContinueDebugCommand | IssuedStepBackDebugCommand | IssuedStepForwardDebugCommand | IssuedSetValueDebugCommand | IssuedReplaceNodeDebugCommand | IssuedRestartDebugCommand; export type IssuedContinueDebugCommand = ContinueDebugCommand; export type IssuedStepBackDebugCommand = StepBackDebugCommand; export type IssuedStepForwardDebugCommand = StepForwardDebugCommand; export type IssuedSetValueDebugCommand = SetValueDebugCommand; export type IssuedReplaceNodeDebugCommand = { type: CommandType.REPLACE_NODE; node: StreamNode; }; export type IssuedRestartDebugCommand = RestartDebugCommand;