UNPKG

348 BTypeScriptView Raw
1import type { IncomingMessage, ServerResponse } from "node:http";
2import type { Webhooks } from "../../index.js";
3import type { MiddlewareOptions } from "./types.js";
4export declare function middleware(webhooks: Webhooks, options: Required<MiddlewareOptions>, request: IncomingMessage, response: ServerResponse, next?: Function): Promise<boolean>;