import { AnyParams, ExternalRouteRef, RouteFunc, RouteRef, SubRouteRef } from './types'; /** * React hook for constructing URLs to routes. * * @remarks * * See {@link https://backstage.io/docs/plugins/composability#routing-system} * * @param routeRef - The ref to route that should be converted to URL. * @returns A function that will in turn return the concrete URL of the `routeRef`. * @public */ export declare function useRouteRef(routeRef: ExternalRouteRef): Optional extends true ? RouteFunc | undefined : RouteFunc; /** * React hook for constructing URLs to routes. * * @remarks * * See {@link https://backstage.io/docs/plugins/composability#routing-system} * * @param routeRef - The ref to route that should be converted to URL. * @returns A function that will in turn return the concrete URL of the `routeRef`. * @public */ export declare function useRouteRef(routeRef: RouteRef | SubRouteRef): RouteFunc;