/** * Notifications Channel Controller * * Handles IN_APP notification streaming - broadcasts new notifications to users. * Only supports notification:created event - when a new notification is created, * it's broadcasted to the user's channel based on userId. * * NOTE: This controller handles IN_APP notifications only. * Email, SMS, and Push are handled by @plyaz/notifications package. * * Flow: * 1. Backend creates notification with user_id * 2. Backend emits notification:created via CoreEventManager * 3. This controller broadcasts to user:notifications:{userId} * 4. User's connected clients receive and display the notification */ import { BaseChannelController } from '../../../events/streaming/channels/BaseChannelController'; import type { StreamBroadcasterInterface } from '@plyaz/types/core'; /** * NotificationsChannelController - Broadcasts new notifications to users * * Channel: * - `user:notifications:{userId}` - User subscribes to receive their notifications */ export declare class NotificationsChannelController extends BaseChannelController { constructor(); /** * Initialize event subscriptions. * Listens to notification:created and broadcasts to user's channel. */ initialize(broadcaster: StreamBroadcasterInterface): void; /** * Override handlesChannel to match notification patterns. */ handlesChannel(channel: string): boolean; } //# sourceMappingURL=NotificationsChannelController.d.ts.map