/** * Noah — Alert System * * Classifies deviation severity and routes alerts to the Commander. * MVP spec Section 2.2. */ import type { GuidanceStatus, DeviationVector } from '../types/guidance.js'; import type { TemporalAlert } from '../types/events.js'; import { LifecyclePhase } from '../types/lifecycle.js'; export interface AlertConfig { /** Suppress duplicate alerts for this many seconds. Default: 3600 (1h). */ deduplicationWindowSeconds: number; /** Suppress INFO alerts. Default: false. */ suppressInfo: boolean; } export declare const DEFAULT_ALERT_CONFIG: AlertConfig; export interface EscalationResult { escalated: boolean; alert: TemporalAlert; suppressed: boolean; reason?: string; } export declare class AlertSystem { private config; private recentAlerts; constructor(config?: Partial); /** * Evaluate guidance status and generate appropriate alerts. */ evaluate(guidanceStatus: GuidanceStatus, deviationVector: DeviationVector, lifecyclePhase: LifecyclePhase, recommendations: string[]): EscalationResult[]; /** * Get all unacknowledged alerts. */ getUnacknowledged(): TemporalAlert[]; /** * Acknowledge an alert by ID. */ acknowledge(alertId: string): boolean; /** * Get all alerts (for history/audit). */ getAllAlerts(): TemporalAlert[]; private colorToSeverity; private createAlert; private isDuplicate; } //# sourceMappingURL=alert-system.d.ts.map