/**
 * Lightweight pub/sub event bus for extension-to-extension communication.
 *
 * Wraps Node's EventEmitter with error-safe handlers (errors are caught and
 * logged rather than crashing the process) and returns unsubscribe functions.
 */
/** Read-only event bus interface exposed to extensions. */
export interface EventBus {
    emit(channel: string, data: unknown): void;
    on(channel: string, handler: (data: unknown) => void): () => void;
}
/** Full event bus with teardown capability, used internally by the loader. */
export interface EventBusController extends EventBus {
    clear(): void;
}
/** Create a new event bus instance with error-safe handler wrapping. */
export declare function createEventBus(): EventBusController;
//# sourceMappingURL=event-bus.d.ts.map