import { AuthenticationProfile } from '@argoncs/types' import { FastifyInstance, FastifyBaseLogger, RawReplyDefaultExpression, RawRequestDefaultExpression, RawServerDefault } from 'fastify' import { TypeBoxTypeProvider } from '@fastify/type-provider-typebox' declare module 'fastify' { interface FastifyRequest { auth: AuthenticationProfile | null } } export type FastifyTypeBox = FastifyInstance< RawServerDefault, RawRequestDefaultExpression, RawReplyDefaultExpression, FastifyBaseLogger, TypeBoxTypeProvider >