import { ExternalRouteRef, RouteRef, SubRouteRef } from '../routing'; /** * Feature flag configuration. * * @public */ export type FeatureFlagConfig = { /** Feature flag name */ name: string; }; /** @public */ export type AnyRoutes = { [name in string]: RouteRef | SubRouteRef; }; /** @public */ export type AnyExternalRoutes = { [name in string]: ExternalRouteRef; }; /** @public */ export interface BackstagePlugin { readonly $$type: '@backstage/BackstagePlugin'; readonly id: string; readonly routes: Routes; readonly externalRoutes: ExternalRoutes; } /** @public */ export interface ExtensionOverrides { readonly $$type: '@backstage/ExtensionOverrides'; } /** @public */ export type FrontendFeature = BackstagePlugin | ExtensionOverrides;