import type { SlopeEvent, CISignal } from './types.js'; export interface WebhookResult { /** Ready for store.insertEvent() — null if event not relevant */ event: Omit | null; /** Parsed CI signal from test output — null if not found */ ciSignal: CISignal | null; /** What happened in the webhook */ action: string; } /** * Validate a GitHub webhook signature using HMAC-SHA256. * Uses crypto.timingSafeEqual to prevent timing attacks. */ export declare function validateGitHubWebhookSignature(payload: string, signatureHeader: string, secret: string): boolean; /** * Handle a GitHub check_run webhook payload. * Extracts CI signals from check_run.output.text when available. */ export declare function handleCheckRunWebhook(payload: unknown, opts?: { sprintNumber?: number; sessionId?: string; }): WebhookResult; /** * Handle a GitHub workflow_run webhook payload. * Maps workflow conclusions to SLOPE event types. */ export declare function handleWorkflowRunWebhook(payload: unknown, opts?: { sprintNumber?: number; sessionId?: string; }): WebhookResult; //# sourceMappingURL=webhooks.d.ts.map