import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';

/** @alpha */
type BackendFeatureMeta = {
    type: 'plugin';
    pluginId: string;
} | {
    type: 'module';
    pluginId: string;
    moduleId: string;
};
/** @alpha */
interface InstanceMetadataService {
    getInstalledFeatures: () => BackendFeatureMeta[];
}

/**
 * EXPERIMENTAL: Instance metadata service.
 *
 * @alpha
 */
declare const instanceMetadataServiceRef: _backstage_backend_plugin_api.ServiceRef<InstanceMetadataService, "plugin", "singleton">;

export { type BackendFeatureMeta, type InstanceMetadataService, instanceMetadataServiceRef };
