/** * Resolve a URL to a relative URL given a base URL that may or may not include subpaths. * @param url - URL to parse into a relative url based on the baseUrl. * @param baseUrl - Application base url, where the application is currently hosted. * @returns relative path without any subpaths from website config. */ export declare function resolveUrlToRelative(url: string, baseUrl: string): string; /** * A helper hook that allows for full internal website urls to be processed through the navigate * hook provided by `react-router-dom`. * * NOTE: This does not support routing to external URLs. That should be done with a `Link` or `a` * element instead, or just `window.location.href`. * * TODO: Update this to use `useRouteRef` instead of `useApi`. * * @returns Navigation function that is a wrapper over `react-router-dom`'s * to support passing full URLs for navigation. * * @public */ export declare function useNavigateUrl(): (to: string) => void;