import ServiceKey from './ServiceKey'; /** * The RootServiceKey is a lookup key that is used when calling {@link ServiceScope.consume} * to fetch a dependency that is ever expected to only be created or provided once. * * @remarks * The lookup id for a RootServiceKey will be same as the name of the key, and every RootServiceKey * will be placed at the root of a ServiceScope (ensuring that it will always be searchable * within a ServiceScope). These are the only differences between a ServiceKey and a RootServiceKey. * * @alpha */ export default class RootServiceKey extends ServiceKey { /** * A flag that indicates whether this service key is a root service. * * @internal */ readonly _isRootService: boolean; /** * returns the Root Service Key's id. * * @remarks * The lookup id for a RootServiceKey will be same as the name of the key * * @param name - A name such as "my-package.IMyService" which should be unique across packages. * @returns the root service key's id */ protected static _generateServiceId(name: string): string; } //# sourceMappingURL=RootServiceKey.d.ts.map