import { MomentoEventBus } from './event_bus.js'; export declare class ExecutionEventBusManager { private readonly cacheName; private readonly apiKey; private readonly messageIdToBus; private readonly taskIdToMessageId; constructor(cacheName: string, apiKey: string); /** * Get or create an event bus for the given messageId and context. * Starts polling the context if not already started. */ createOrGetByMessageId(originalMessageId: string, contextId: string): MomentoEventBus; /** * Associate a taskId with an original messageId. * Used to route future events for a task to the correct event bus. */ associateTask(taskId: string, originalMessageId: string): void; /** * Get an event bus by taskId. * Returns undefined if the mapping does not exist. */ getByTaskId(taskId: string): MomentoEventBus | undefined; /** * Clean up an event bus (removes listeners and deletes mappings). */ cleanupByMessageId(originalMessageId: string): void; /** * (Optional) Remove a task and its event bus by taskId. * Use if you want to clean up by taskId directly. */ cleanupByTaskId(taskId: string): void; } export default ExecutionEventBusManager; //# sourceMappingURL=event_bus_manager.d.ts.map