import type { Route, RouteMatch, RouterConfig } from './types'; export declare function createRouter(baseDir: string, config?: RouterConfig): Router; export declare function findErrorPage(pagesDir: string, statusCode: number): string | null; export declare function formatRoutes(routes: Route[], baseDir: string): string[]; export declare class Router { routes: Route[]; constructor(baseDir: string, config?: RouterConfig); match(pathname: string): RouteMatch | null; resolve(name: string, params?: Record): string; addRoute(route: Route): void; getLayout(route: Route): string | null; }