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