UNPKG

@intuitionrobotics/push-pub-sub

Version:
19 lines (18 loc) 965 B
import { ThunderDispatcher } from "@intuitionrobotics/thunderstorm/app-frontend/core/thunder-dispatcher"; import { Module } from "@intuitionrobotics/ts-common"; import { DB_Notifications } from "../.."; export interface OnNotificationsUpdated { __onNotificationsUpdated(): void; } export declare const dispatch_NotificationsUpdated: ThunderDispatcher<OnNotificationsUpdated, "__onNotificationsUpdated", [], void>; export declare class NotificationsModule_Class extends Module { constructor(); private notifications; getNotifications(): DB_Notifications[]; setNotificationList: (notifications: DB_Notifications[]) => void; addNotification(newNotification: DB_Notifications): void; removeNotification(notification: DB_Notifications): string; read: (notification: DB_Notifications, read: boolean) => void; readNotification: (id: string, read: boolean) => void; } export declare const NotificationsModule: NotificationsModule_Class;