import type { NextAuthOptions } from "./types"; import type { NextAuthAction } from "../lib/types"; import type { Cookie } from "./lib/cookie"; export interface IncomingRequest { /** @default "http://localhost:3000" */ host?: string; method?: string; cookies?: Record; headers?: Record; query?: Record; body?: Record; action: NextAuthAction; providerId?: string; error?: string; } export interface NextAuthHeader { key: string; value: string; } export interface OutgoingResponse | any[] = any> { status?: number; headers?: NextAuthHeader[]; body?: Body; redirect?: string; cookies?: Cookie[]; } export interface NextAuthHandlerParams { req: IncomingRequest; options: NextAuthOptions; } export declare function NextAuthHandler | any[]>(params: NextAuthHandlerParams): Promise>;