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