import { Middleware, Pipelines } from '../types/middleware'; export interface Alert { id: number; accountId: string; triggeredBy: string; message: string; count: number; createdAt: Date; updatedAt: Date; } export default class AlertMiddleware implements Middleware { private alerts; private nextAlertId; applyToPipelines(pipelines: Pipelines, accountId: string): Promise; getAlerts(): Alert[]; dismissAlert(id: number): void; private addAlert; }