import { type FrameworkBkndConfig, type FrameworkOptions } from "bknd/adapter";
import type { NextApiRequest } from "next";
type NextjsEnv = NextApiRequest["env"];
export type NextjsBkndConfig<Env = NextjsEnv> = FrameworkBkndConfig<Env> & {
    cleanRequest?: {
        searchParams?: string[];
    };
};
export declare function getApp<Env = NextjsEnv>(config: NextjsBkndConfig<Env>, args?: Env, opts?: FrameworkOptions): Promise<import("../..").App>;
export declare function serve<Env = NextjsEnv>({ cleanRequest, ...config }?: NextjsBkndConfig<Env>, args?: Env, opts?: FrameworkOptions): (req: Request) => Promise<Response>;
export {};
