import { ViralutionEvent } from "../../..";
type EventHandler = (...args: any[]) => void;
export declare class EventDispatcher {
    private events;
    /**
     * Subscribe to event listener
     * @param event
     * @param handler
     */
    on(event: ViralutionEvent, handler: EventHandler): void;
    /**
     * Unsubscribe to event listener
     * @param event
     * @param handler
     */
    off(event: ViralutionEvent, handler: EventHandler): void;
    /**
     * Emit data to event
     * @param event event type
     * @param args inputs for handler
     */
    emit(event: ViralutionEvent, ...args: any[]): void;
}
export {};
