/** * The following code is modified based on * https://github.com/nanobrowser/nanobrowser/blob/master/chrome-extension/src/background/agent/event/manager.ts * * Apache-2.0 License * Copyright (c) 2024 alexchenzl * https://github.com/nanobrowser/nanobrowser/blob/master/LICENSE */ import type { AgentEvent, EventType, EventCallback } from './types'; export declare class EventManager { private _subscribers; constructor(); subscribe(eventType: EventType, callback: EventCallback): void; unsubscribe(eventType: EventType, callback: EventCallback): void; clearSubscribers(eventType: EventType): void; emit(event: AgentEvent): Promise; } //# sourceMappingURL=manager.d.ts.map