/** * Notification system for RecourseOS escalations. * * Currently supported: * - Slack webhooks (RECOURSE_SLACK_WEBHOOK) * - Discord webhooks (RECOURSE_DISCORD_WEBHOOK) * * Planned (not yet implemented): * - PagerDuty Events API * - Opsgenie Alerts API * * Notifications are sent automatically when risk is 'escalate' or 'block'. */ export { sendSlackNotification, createSlackNotifier, formatSlackMessage } from './slack.js'; export { sendDiscordNotification, createDiscordNotifier, formatDiscordMessage } from './discord.js'; export interface ConsequenceAlert { riskAssessment: 'allow' | 'warn' | 'escalate' | 'block'; source: 'terraform' | 'shell' | 'mcp'; target: string; action: string; tier: string; reasoning: string; actor?: string; environment?: string; timestamp?: string; } export type Notifier = (alert: ConsequenceAlert) => Promise; /** * Create a combined notifier that sends to all configured channels. * Reads from environment variables: * - RECOURSE_SLACK_WEBHOOK * - RECOURSE_DISCORD_WEBHOOK */ export declare function createNotifier(): Notifier | null; /** * Check if notifications are configured. */ export declare function hasNotifications(): boolean; /** * Notify if risk level warrants it (escalate or block). */ export declare function notifyIfNeeded(alert: ConsequenceAlert): Promise; //# sourceMappingURL=index.d.ts.map