import fastify, { HTTPInjectOptions, HTTPInjectResponse } from 'fastify'; import { IncomingMessage, ServerResponse, Server } from 'http'; type NodeCb = (err: Error, res: HTTPInjectResponse) => void; export interface RackifyServer { fastify: fastify.FastifyInstance inject(opts: HTTPInjectOptions | string): Promise; inject(opts: HTTPInjectOptions | string, cb: NodeCb): void; } export interface RackifyRequest extends fastify.FastifyRequest {} export interface RackifyReply extends fastify.FastifyReply {}