import { type Middleware } from "../../http";
import { type ApiRoutes } from "../../http/ApiRouter";
import type { RouterMiddleware } from "../../http/Router";
type ApiRouteExec = any;
export type FlatApiRoutes = Record<string, Record<string, {
    exec: ApiRouteExec;
    middleware: (string | (new () => Middleware) | RouterMiddleware)[];
}>>;
export declare function createFlatApiRoutes(routes: ApiRoutes, rootPath?: string, rootMiddleware?: RouterMiddleware[] | string[]): {
    [k: string]: Record<string, {
        exec: ApiRouteExec;
        middleware: (string | (new () => Middleware) | RouterMiddleware)[];
    }>;
};
export {};
//# sourceMappingURL=createFlatApiRoutes.d.ts.map