export interface Route { filePath: string; pattern: string; pathname: string; paramNames: string[]; regex: RegExp; layouts: string[]; errorPath?: string; loadingPath?: string; middlewares: string[]; type: "page" | "api"; } export interface RouteMatch { route: Route; params: Record; } export declare function filePathToPattern(filePath: string, appDir: string): { pattern: string; paramNames: string[]; }; export declare function patternToRegex(pattern: string): RegExp; export interface DiscoverRoutesOptions { quiet?: boolean; } export declare function discoverRoutes(appDir: string, options?: DiscoverRoutesOptions): Route[]; export declare function matchRoute(pathname: string, routes: Route[]): RouteMatch | null; //# sourceMappingURL=router.d.ts.map