import type { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify'; import type { HttpContext, ServerEngineAdapter } from '../Quilt.js'; import type { Handler } from '../Handler.js'; /** * Adapter that implements the ServerEngine interface using Fastify. */ export declare class FastifyEngineAdapter implements ServerEngineAdapter { private fastify; constructor({ fastify }: { fastify: FastifyInstance; }); post(path: string, handler: (req: FastifyRequest, res: FastifyReply) => Promise): void; get(path: string, handler: (req: FastifyRequest, res: FastifyReply) => Promise): void; patch(path: string, handler: (req: FastifyRequest, res: FastifyReply) => Promise): void; put(path: string, handler: (req: FastifyRequest, res: FastifyReply) => Promise): void; delete(path: string, handler: (req: FastifyRequest, res: FastifyReply) => Promise): void; options(path: string, handler: (req: FastifyRequest, res: FastifyReply) => Promise): void; head(path: string, handler: (req: FastifyRequest, res: FastifyReply) => Promise): void; } export type FastifyHttpContext = HttpContext; export type FastifyHandler> = Record>> = Handler; //# sourceMappingURL=FastifyEngineAdapter.d.ts.map