import type { NextAuthResult } from "next-auth";
import { NextRequest, NextResponse } from "next/server";
type Middleware = (req: NextRequest) => NextResponse;
type AuthjsMiddleware = NextAuthResult["auth"] | ReturnType<NextAuthResult["auth"]>;
/**
 * Middleware of payload-authjs
 *
 * @deprecated This middleware is no longer needed and will be removed in the future
 */
export default function middleware(arg: NextRequest | Middleware | AuthjsMiddleware | any): Middleware | NextResponse;
export {};
