import { NextRequest, NextResponse } from 'next/server';

/**
 * Next.js API Route Handler for React DevTools Plus
 *
 * This module exports a ready-to-use API route handler that serves
 * the DevTools client and overlay files. Users just need to create
 * a catch-all route file with a single line of code.
 *
 * @example
 * ```ts
 * // app/__react_devtools__/[[...path]]/route.ts
 * export { GET } from 'react-devtools-plus/next/api'
 * ```
 */

/**
 * GET handler for DevTools API routes
 */
declare function GET(request: NextRequest, context: {
    params: Promise<{
        path?: string[];
    }>;
}): Promise<NextResponse<unknown>>;

export { GET };
