import { CbEvents } from '../constant/callback'; type Cbfn = (data: T) => void; declare class Emitter { private events; constructor(); emit(event: CbEvents, data?: T): this; on(event: CbEvents, fn: Cbfn): this; off(event: CbEvents, fn: Cbfn): this; } export default Emitter;