import OAuth2Server from "oauth2-server";
import { NextFunction, Request, Response } from "express";

//#region src/middlewares/oAuth2.middleware.d.ts
type RequestWithOAuth2Information<P = any, ResBody = any, ReqBody = any, ReqQuery = qs.ParsedQs> = Request<P, ResBody, ReqBody, ReqQuery> & {
  oauth: OAuth2Server;
};
declare const attachOAuthInstance: (req: Request, _res: Response, next: NextFunction) => Promise<void>;
declare const oAuth2Middleware: (req: Request, res: Response, next: NextFunction) => Promise<void>;
//#endregion
export { RequestWithOAuth2Information, attachOAuthInstance, oAuth2Middleware };
//# sourceMappingURL=oAuth2.middleware.d.ts.map