import type { Handler, HttpMethod } from '../../request/di/types.js'; import type { SignatureVerifier } from './verify.js'; export interface InboundWebhookConfig { path: string; method?: HttpMethod; verifier: SignatureVerifier; parsePayload?: (rawBody: Buffer) => TPayload; idempotencyKey?: (payload: TPayload) => string; } export interface InboundWebhookContext { payload: TPayload; rawBody: Buffer; headers: Readonly>; } export declare function defineInboundWebhook(config: InboundWebhookConfig, handler: (ctx: InboundWebhookContext) => Promise): Handler, unknown>; //# sourceMappingURL=inbound.d.ts.map