import { t as Session } from "./session.types-CI5sA-DJ.js";
import { t as Auth } from "./getAuth-CjD5re7D.js";
import { FastifyReply, FastifyRequest } from "fastify";

//#region src/middlewares/sessionAuth.middleware.d.ts
declare module 'fastify' {
  interface FastifyRequest {
    locals?: {
      authType?: string;
      [key: string]: any;
    } & Session;
  }
}
type ResponseWithSession<ResBody = any, Locals extends Record<string, any> = Record<string, any> & Session> = FastifyReply & {
  locals: Locals;
};
declare const authMiddleware: (auth: Auth) => (request: FastifyRequest, reply: FastifyReply) => Promise<void>;
//#endregion
export { authMiddleware as n, ResponseWithSession as t };
//# sourceMappingURL=sessionAuth.middleware-WaGE5Tk0.d.ts.map