import type { WebhookHandler } from '../handler.js'; interface FastifyRequestLike { method: string; headers: Record; body?: unknown; } interface FastifyReplyLike { code: (status: number) => FastifyReplyLike; header: (name: string, value: string) => FastifyReplyLike; send: (body?: string) => unknown; } export type FastifyHandler = (req: FastifyRequestLike, reply: FastifyReplyLike) => Promise; /** * fastify auto-parses json bodies. `fastify.post('/webhook', fastifyAdapter(tg.webhookHandler()))` */ export declare function fastifyAdapter(handler: WebhookHandler): FastifyHandler; export {}; //# sourceMappingURL=fastify.d.ts.map