import { ActionRuntimeContext , InternalUnitRuntimeContext , PipelineRuntimeContext , StageRuntimeContext , UnitRuntimeContext } from '../types' ; export enum RuntimeEventTypes { DO_PIPELINE_TRIGGER_TYPE_CHECK = 'do-pipeline-trigger-type-check' , DO_PIPELINE_CONDITION_CHECK = 'do-pipeline-condition-check' , RUN_STAGES = 'run-stages' , PIPELINE_IGNORED = 'pipeline-ignored' , PIPELINE_DONE = 'pipeline-done' , PIPELINE_FAILED = 'pipeline-failed' , RUN_DYNAMIC_PIPELINE = 'run-dynamic-pipeline' , RUN_NEXT_PIPELINE = 'run-next-pipeline' , RUN_STAGE = 'run-stage' , DO_STAGE_CONDITION_CHECK = 'do-stage-condition-check' , RUN_UNITS = 'run-units' , STAGE_IGNORED = 'stage-ignored' , STAGE_DONE = 'stage-done' , STAGE_FAILED = 'stage-failed' , RUN_UNIT = 'run-unit' , BUILD_INTERNAL_UNITS = 'build-internal-units' , RUN_INTERNAL_UNITS = 'run-internal-units' , UNIT_IGNORED = 'unit-ignored' , UNIT_DONE = 'unit-done' , UNIT_FAILED = 'unit-failed' , RUN_INTERNAL_UNIT = 'run-internal-unit' , DO_INTERNAL_UNIT_CONDITION_CHECK = 'do-internal-unit-condition-check' , RUN_ACTIONS = 'run-actions' , INTERNAL_UNIT_IGNORED = 'internal-unit-ignored' , INTERNAL_UNIT_DONE = 'internal-unit-done' , INTERNAL_UNIT_FAILED = 'internal-unit-failed' , RUN_ACTION = 'run-action' , DO_RUN_ACTION = 'do-run-action' , ACTION_DONE = 'action-done' , ACTION_FAILED = 'action-failed' } export interface RuntimeEventBus { fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context , error ? ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context , error ? ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context , error ? ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , context , error ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; }