import { AnyRouteRefParams } from './types'; /** * Route descriptor, to be later bound to a concrete route by the app. Used to implement cross-plugin route references. * * @remarks * * See {@link https://backstage.io/docs/plugins/composability#routing-system}. * * @public */ export interface ExternalRouteRef { readonly $$type: '@backstage/ExternalRouteRef'; readonly T: TParams; readonly optional: TOptional; } /** * Creates a route descriptor, to be later bound to a concrete route by the app. Used to implement cross-plugin route references. * * @remarks * * See {@link https://backstage.io/docs/plugins/composability#routing-system}. * * @param options - Description of the route reference to be created. * @public */ export declare function createExternalRouteRef(options?: { /** * The parameters that will be provided to the external route reference. */ readonly params?: string extends TParamKeys ? (keyof TParams)[] : TParamKeys[]; /** * Whether or not this route is optional, defaults to false. * * Optional external routes are not required to be bound in the app, and * if they aren't, `useExternalRouteRef` will return `undefined`. */ optional?: TOptional; /** * The route (typically in another plugin) that this should map to by default. * * The string is expected to be on the standard `.` form, * for example `techdocs.docRoot`. */ defaultTarget?: string; }): ExternalRouteRef;