// Type declarations for next/server // These are minimal declarations for build purposes. // In actual Next.js projects, the real types from Next.js will be used. declare module 'next/server' { export interface NextRequest extends Request { nextUrl: { pathname: string; searchParams: URLSearchParams; }; } export class NextResponse extends Response { static json(body: any, init?: ResponseInit): NextResponse; static redirect(url: string | URL, status?: number): NextResponse; static rewrite(destination: string | URL): NextResponse; static next(init?: ResponseInit): NextResponse; } }