import * as EventEmitter from 'events' ; export const events = { START : Symbol ( 'start' ) , END : Symbol ( 'end' ) , STOP : Symbol ( 'stop' ) , ERROR : Symbol ( 'error' ) , WARN : Symbol ( 'warn' ) , DIAGNOSTICS : Symbol ( 'diagnostics' ) , TRANSFORM : Symbol ( 'transform' ) , SCAN : Symbol ( 'transform' ) , EMIT : Symbol ( 'emit' ) , CLEAN : Symbol ( 'cleanup' ) , } ; export const emitter = new EventEmitter ( ) ; export const emit = emitter . emit . bind ( emitter ) ; export const on = emitter . on . bind ( emitter ) ;