/** * Webhook Middleware * * HTTP middleware for Harper's scope.server.http() that routes * /webhooks/// requests to the appropriate * webhook handler after validating the per-KB secret. */ import type { Scope, HarperRequest } from '../types.ts'; /** * Create a webhook middleware function for Harper's scope.server.http(). * * URL format: /webhooks/// * * The secret is validated against the WebhookEndpoint table for the * given KB and provider. The same secret is used to verify the GitHub * HMAC payload signature. */ export declare function createWebhookMiddleware(scope: Scope): (request: HarperRequest, next: (req: HarperRequest) => Promise) => Promise; //# sourceMappingURL=middleware.d.ts.map