/** * Notification system for Clawhatch security scanner. * Supports Discord, Slack, and generic webhook alerts. */ import type { ClawhatchConfig, ScanResult, ThreatFeed, WebhookAlert } from "./types.js"; /** * Load clawhatch.json from the openclaw directory. */ export declare function loadNotifyConfig(openclawDir: string): Promise; /** * Save (merge) clawhatch.json in the openclaw directory. */ export declare function saveNotifyConfig(openclawDir: string, config: ClawhatchConfig): Promise; /** * Build webhook alerts from scan results, filtered by severity threshold. */ export declare function buildAlerts(result: ScanResult, feed: ThreatFeed | null, threshold: string): WebhookAlert[]; /** * Send webhook alerts to a Discord, Slack, or generic endpoint. * Returns true on 2xx, false otherwise. Never throws. */ export declare function sendWebhookAlert(webhookUrl: string, alerts: WebhookAlert[], score: number): Promise; /** * Send a test message to verify the webhook is working. * Returns true on 2xx, false otherwise. Never throws. */ export declare function sendTestAlert(webhookUrl: string): Promise; //# sourceMappingURL=notify.d.ts.map