import type { HttpContext } from '@adonisjs/core/http';
import type { NextFn } from '@adonisjs/core/types/http';
import type { Vite } from './vite.js';
/**
 * Since Vite dev server is integrated within the AdonisJS process, this
 * middleware is used to proxy the requests to it.
 *
 * Some of the requests are directly handled by the Vite dev server,
 * like the one for the assets, while others are passed down to the
 * AdonisJS server.
 */
export default class ViteMiddleware {
    #private;
    protected vite: Vite;
    constructor(vite: Vite);
    handle({ request, response }: HttpContext, next: NextFn): Promise<any>;
}
