import { NextResponse } from "next/server"; type RouteConfig = { handler: Function; client: any; }; type RouteMethod = "GET" | "POST" | "PUT" | "DELETE"; type Routes = { [path: string]: { [method in RouteMethod]?: RouteConfig; }; }; declare const createOpenApiServerActionRouter: ({ pathPrefix }: { pathPrefix?: string | undefined }) => { get(path: string, handler: Function, client: any): any; post(path: string, handler: Function, client: any): any; put(path: string, handler: Function, client: any): any; delete(path: string, handler: Function, client: any): any; getRoutes(): Routes; }; declare function createRouteHandlers(router: ReturnType): { GET(req: Request): Promise>; POST(req: Request): Promise>; PUT(req: Request): Promise>; DELETE(req: Request): Promise>; }; export { createOpenApiServerActionRouter, createRouteHandlers };