export type HandlerOriginal = ((request: FastifyRequest, reply: FastifyReply, done: HookHandlerDoneFunction) => Promise) | ((request: FastifyRequest, reply: FastifyReply, done: HookHandlerDoneFunction) => void); export type FastifyError = any; export type HookHandlerDoneFunction = (err?: TError) => void; export type FastifyErrorCodes = any; export type FastifyPlugin = (instance: FastifyInstance, opts: any, done: HookHandlerDoneFunction) => unknown | Promise; export interface FastifyInstance { version: string; register: (plugin: any) => FastifyInstance; after: (listener?: (err: Error) => void) => FastifyInstance; addHook(hook: string, handler: HandlerOriginal): FastifyInstance; addHook(hook: 'onError', handler: (request: FastifyRequest, reply: FastifyReply, error: Error) => void): FastifyInstance; addHook(hook: 'onRequest', handler: (request: FastifyRequest, reply: FastifyReply) => void): FastifyInstance; } export interface FastifyReply { send: () => FastifyReply; statusCode: number; } export interface FastifyRequest { method?: string; routeOptions?: { url?: string; }; routerPath?: string; } //# sourceMappingURL=types.d.ts.map