/** * GitHub Webhook Handler * * Validates GitHub webhook signatures (HMAC-SHA256) and parses payloads * for issues, issue comments, discussions, and discussion comments. */ import type { WebhookResult } from './types.ts'; /** * Validate a GitHub webhook signature using HMAC-SHA256. * * @param rawBody - The raw request body string * @param signature - The X-Hub-Signature-256 header value * @param secret - The configured webhook secret * @returns true if the signature is valid */ export declare function validateSignature(rawBody: string, signature: string, secret: string): boolean; /** * Parse a GitHub webhook payload and extract a triage-ready result. * * @param event - The X-GitHub-Event header value * @param payload - The parsed JSON payload * @returns A WebhookResult for triage, or null if the event should be ignored */ export declare function parsePayload(event: string, payload: Record): WebhookResult | null; //# sourceMappingURL=github.d.ts.map