import { EventHandler } from './types';
export declare class EventBus {
    private handlers;
    on(event: string, handler: EventHandler): () => void;
    off(event: string, handler: EventHandler): void;
    emit(event: string, payload: any): void;
    offAll(): void;
}
