import { MiddlewareResponse, Ctx } from 'blitz'; import { IncomingMessage } from 'http'; import { AuthOptions, User, Profile } from 'next-auth'; import { d as SessionContext } from './global-d37928f1.js'; import oAuthCallback from 'next-auth/core/lib/oauth/callback'; import { Provider, OAuthConfig } from 'next-auth/providers'; import 'url'; declare function withNextAuthAdapter(nextConfig: any): any; type BlitzNextAuthOptions

= Omit & { providers: P; successRedirectUrl: string; errorRedirectUrl: string; secureProxy?: boolean; callback: (user: User, account: Awaited>["account"], profile: P[0] extends OAuthConfig ? Parameters[0] : Profile, session: SessionContext) => Promise; }; type ApiHandlerIncomingMessage = IncomingMessage & { query: { [key: string]: string | string[] | undefined; }; } & { body: { [key: string]: string | undefined; }; }; type BlitzNextAuthApiHandler = (req: ApiHandlerIncomingMessage, res: MiddlewareResponse & { status: (statusCode: number) => any; } & { json: (data: any) => any; }, ctx: Ctx) => void | Promise; declare function NextAuthAdapter

(config: BlitzNextAuthOptions

): BlitzNextAuthApiHandler; export { ApiHandlerIncomingMessage, BlitzNextAuthApiHandler, BlitzNextAuthOptions, NextAuthAdapter, withNextAuthAdapter };