export interface Emitter { on(event: string, fn: (...args: any[]) => void): Emitter; emit(event: string, ...args: any[]): Emitter; }