import { EventEmitter } from 'events'; import { AbstractNotificationService } from "./AbstractNotificationService"; import { INotification } from '../../interfaces/types'; export declare class NotificationHandler extends EventEmitter { private services; constructor(); /** * Register a new notification service * @param service */ registerService(service: AbstractNotificationService): void; /** * Get a notification service by class * @param notificationClass */ getService(notificationClass: string): AbstractNotificationService | undefined; /** * Get all registered services */ getAllServices(): AbstractNotificationService[]; /** * Dispatch a notification to a service * @param notificationClass * @param notification */ dispatchNotification(notificationClass: string, notification: Omit): Promise; }