import { PipelineStage } from '@/services/data/tuples/pipeline-stage-types' ; import { PipelineStageUnit } from '@/services/data/tuples/pipeline-stage-unit-types' ; export enum StageEventTypes { RENAME_STAGE = 'rename-stage' , CONDITION_CHANGED = 'condition-changed' , UNIT_ADDED = 'unit-added' , UNIT_REMOVED = 'unit-removed' , UNIT_CHANGED = 'unit-changed' , UNIT_SORTED = 'unit-sorted' , EXPAND_CONTENT = 'expand-content' , COLLAPSE_CONTENT = 'collapse-content' } export interface StageEventBus { fire ( type , stage ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , stage ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , unit , stage ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , unit , stage ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , unit , stage ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , stage ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; }