import type { GetServerSidePropsContext, NextApiRequest, NextApiResponse } from "next"; import { type NextRequest } from "next/server"; import type { AuthOptions, Session } from ".."; import type { CallbacksOptions, Awaitable } from "../core/types"; interface RouteHandlerContext { params: Awaitable<{ nextauth: string[]; }>; } declare function NextAuth(options: AuthOptions): any; declare function NextAuth(req: NextApiRequest, res: NextApiResponse, options: AuthOptions): any; declare function NextAuth(req: NextRequest, res: RouteHandlerContext, options: AuthOptions): any; export default NextAuth; declare type GetServerSessionOptions = Partial> & { callbacks?: Omit & { session?: (...args: Parameters) => any; }; }; declare type GetServerSessionParams = [GetServerSidePropsContext["req"], GetServerSidePropsContext["res"], O] | [NextApiRequest, NextApiResponse, O] | [O] | []; export declare function getServerSession infer U; } ? U : Session>(...args: GetServerSessionParams): Promise; /** @deprecated renamed to `getServerSession` */ export declare function unstable_getServerSession infer U; } ? U : Session>(...args: GetServerSessionParams): Promise; declare global { namespace NodeJS { interface ProcessEnv { NEXTAUTH_URL?: string; NEXTAUTH_SECRET?: string; AUTH_SECRET?: string; VERCEL?: "1"; } } } //# sourceMappingURL=index.d.ts.map