/// import * as http from 'http'; import { type Update } from '../types/typegram'; export interface WebhookOptions { /** * Expected webhook path for proper status code responses. * When provided, enables returning 404 for path mismatches * and 405 for method mismatches instead of generic 403. */ path?: string; } export default function generateWebhook(filter: (req: http.IncomingMessage) => boolean, updateHandler: (update: Update, res: http.ServerResponse) => Promise, options?: WebhookOptions): (req: http.IncomingMessage & { body?: Update; }, res: http.ServerResponse, next?: () => void) => Promise; //# sourceMappingURL=webhook.d.ts.map