import type { EndRoute } from "../routes/interfaces.ts"; import type { LocaleType, RouteMap, Routes } from "../types.ts"; import type { RouteMatch } from "./findMatch.ts"; export interface Router { get: (key: string) => EndRoute; find: (path: string, locale?: Locales) => RouteMatch | null; toLocalizedPath: (locale: Locales, key: string, args?: any) => string; toPath: (key: string, args?: any) => string; } export declare function createRouter(routes: Routes, routeMap: RouteMap): Router; //# sourceMappingURL=createRouter.d.ts.map