import type { History } from 'history'; import { useLocation } from 'react-router-dom'; export interface RouteParams extends Record { } /** * The route path to match. Usually it starts with `/:projectKey/my-entry-point`. */ export type RoutePath = string; export type TMakeRouteOptions = { params: Partial; goTo: History['push']; location: ReturnType; }; export type TRoute = { path: string; getUrl: (params?: Params, nextQueryParams?: URLSearchParams) => string; go: (params?: Params, nextQueryParams?: URLSearchParams) => void; }; declare function useRoutesCreator(): { createRoute: (routePath: RoutePath) => TRoute : never>; }; export default useRoutesCreator;