/** * @author edwardnie * @file tiny event emitter */ export declare class EventEmitter> { handlersMap: Record>; on(type: K, handler: EventMap[K]): this; off(type: K, handler: EventMap[K]): this; emit(type: K, ...data: unknown[]): this; release(): this; }