Variable NotificationConst

Notification: NotificationUtils

Singleton instance of NotificationUtils for convenient notification access.

import { Notification } from "./classes/Notification";

// Get all notifications
const all = await Notification.getData();

// Filter by type using type discrimination
const closedSignals = all.filter(n => n.type === "signal.closed");
const highLosses = all.filter(n =>
n.type === "partial.loss" && n.level >= 30
);

// Clear history
await Notification.clear();