export declare class EventProvider { events: { [type in keyof E]?: (data: E[type]) => void; }; private bindEvents; constructor(bindEvents?: boolean); on(type: K, cb: (data: E[K]) => void): void; off(type: K): void; trigger(type: K, data: E[K]): void; }