import { type NextRequest } from "next/server";
import type { NextApiHandler } from "next/types";
/**
 * The default Next API route for the fal.ai client proxy.
 */
export declare const PROXY_ROUTE = "/api/fal/proxy";
/**
 * The Next API route handler for the fal.ai client proxy.
 * Use it with the /pages router in Next.js.
 *
 * Note: the page routers proxy doesn't support streaming responses.
 *
 * @param request the Next API request object.
 * @param response the Next API response object.
 * @returns a promise that resolves when the request is handled.
 */
export declare const handler: NextApiHandler;
/**
 * The Next API route handler for the fal.ai client proxy on App Router apps.
 *
 * @param request the Next API request object.
 * @returns a promise that resolves when the request is handled.
 */
declare function routeHandler(request: NextRequest): Promise<Response>;
export declare const route: {
    handler: typeof routeHandler;
    GET: typeof routeHandler;
    POST: typeof routeHandler;
    PUT: typeof routeHandler;
};
export {};
