import type { WebhookAdapter, WebhookDispatch } from "@render-lab/triggers"; export interface GitHubAdapterOptions { /** Webhook secret. Defaults to env GITHUB_WEBHOOK_SECRET. */ secret?: string; /** * Map a verified GitHub event to a task dispatch, or null to ignore it. * `event` is the X-GitHub-Event header (e.g. "issues"); `payload` is the body. */ onEvent: (ctx: { event: string; payload: GitHubPayload; }) => WebhookDispatch | null; } export interface GitHubPayload { action?: string; repository?: { full_name?: string; }; [key: string]: unknown; } /** * Verify GitHub's `X-Hub-Signature-256`: `sha256=` + HMAC-SHA256(secret, rawBody), * compared in constant time. */ export declare function verifyGithubSignature(secret: string, rawBody: string, signature: string | undefined): boolean; /** A GitHub webhook adapter: HMAC-verified, event-mapped to a task dispatch. */ export declare function githubAdapter(options: GitHubAdapterOptions): WebhookAdapter; //# sourceMappingURL=index.d.ts.map