import type esbuild from "esbuild"; import type { CompiledLayout } from "./build/common"; export interface RouteInfo { pathname: string; pageFile: string; layouts: string[]; } export interface PageRoute extends RouteInfo { isDynamic: boolean; } export declare function pathnameFromFile(filePath: string): string; export declare function getPageRoutes(pagesDir: string): Promise; export declare function collectLayouts(pageDir: string, rootDir: string): Promise; export declare function fileHasDynamicExport(path: string): Promise; export declare function sanitize(pathname: string): string; export declare const eleganceTsxPlugin: esbuild.Plugin; export declare function composeRenderFn(pageModule: any, layoutModules: CompiledLayout[]): (params: any, req: any, res: any) => any; export declare function gatherMetaFromModules(pageModule: any, layoutModules: any[], params: Record): Promise; //# sourceMappingURL=page-tools.d.ts.map