import { Key, PathFunction } from 'path-to-regexp'; export interface RouteInfo { name: string; path: string; matcher?: RegExp; keys?: Key[]; compiler?: PathFunction; } export type RouteParamsRecord = Record; export type RouteQueryRecord = Record; export interface GetHrefConfig { name: string; params?: RouteParamsRecord; query?: RouteQueryRecord; } export declare function getHref(config: GetHrefConfig, routeConfig: RouteInfo[]): string; export declare function createRouterConfig(routes: Pick[]): RouteInfo[]; export declare function urlParamsToObject(params: URLSearchParams): Record;