export declare type RouteParams = { [p: string]: string | number | undefined; } | string[] | string | number; export declare type QueryParamsRecord = Record; export declare type QueryParams = string[][] | QueryParamsRecord | string | URLSearchParams; export declare let routes: Record; export declare function setRoutes(newRoutes: Record): void; export declare function registerRoute(routeName: string, routePath: string): boolean; export declare let publicUrl: string; export declare function setPublicUrl(newPublicUrl: string): void; export declare function route(route: string, params?: RouteParams, query?: QueryParams, absolute?: boolean): string; export declare function getRouteParamRegExp(key: string, flags?: string): RegExp; export declare function hasRoute(...routesToMatch: string[]): boolean; export declare function hasAnyRoute(...routesToMatch: string[]): boolean;