import { EventHandler } from "../../core/event/EventHandler";
import { Log } from "../../core/Log";
/** 轻量发布/订阅事件总线 */
export declare class EventBus {
    private readonly debug;
    private readonly logPrefix;
    private readonly logger;
    private readonly listeners;
    constructor(debug: boolean | undefined, logPrefix: string | undefined, logger: Log);
    isDebug(): boolean;
    private logD;
    on<T = unknown>(event: string, handler: EventHandler<T>): () => void;
    once<T = unknown>(event: string, handler: EventHandler<T>): () => void;
    off<T = unknown>(event: string, handler: EventHandler<T>): void;
    emit<T = unknown>(event: string, payload?: T): void;
    clear(): void;
    listenerCount(event: string): number;
}
//# sourceMappingURL=EventBus.d.ts.map