import { EventEmitter } from 'events' ; import Segment from '../trace/context/Segment' ; declare interface SkyWalkingEventEmitter { on ( event , listener ) : this ; on ( event , listener ) : this ; } class SkyWalkingEventEmitter extends EventEmitter { } export const emitter = new SkyWalkingEventEmitter ( ) ;