import { BackendFeature, ExtensionPoint, ServiceRef, ServiceFactoryOrFunction } from '@backstage/backend-plugin-api'; /** * @public */ export interface Backend { add(feature: BackendFeature | (() => BackendFeature) | Promise<{ default: BackendFeature | (() => BackendFeature); }>): void; start(): Promise; stop(): Promise; } /** * @public */ export interface CreateSpecializedBackendOptions { defaultServiceFactories: ServiceFactoryOrFunction[]; } /** * @public */ export type ServiceOrExtensionPoint = ExtensionPoint | ServiceRef;