import type { AddressInfo } from "node:net"; import type { WebhookBody } from "./types.js"; export interface WebhookServerArgs { path: string; verifyToken: string; appSecret: string; /** Called (async, after the 200 ack) with the parsed webhook body. */ onEvent: (body: WebhookBody) => Promise; } /** Owns the inbound webhook HTTP server: GET verify + signed POST intake. */ export declare class WebhookServer { private readonly args; private server; constructor(args: WebhookServerArgs); address(): AddressInfo | null; start(port: number): Promise; stop(): Promise; private handle; private handleVerify; private handlePost; private verifySignature; } //# sourceMappingURL=webhook-server.d.ts.map