import OAuth2Server from "oauth2-server";
import { FastifyReply, FastifyRequest } from "fastify";

//#region src/middlewares/oAuth2.middleware.d.ts
declare module 'fastify' {
  interface FastifyRequest {
    oauth?: OAuth2Server;
  }
}
type RequestWithOAuth2Information = FastifyRequest & {
  oauth: OAuth2Server;
};
declare const attachOAuthInstance: (request: FastifyRequest, _reply: FastifyReply) => Promise<void>;
declare const oAuth2Middleware: (request: FastifyRequest, reply: FastifyReply) => Promise<void>;
//#endregion
export { RequestWithOAuth2Information, attachOAuthInstance, oAuth2Middleware };
//# sourceMappingURL=oAuth2.middleware.d.ts.map