/** * Gets a singleton. Returns null if the singleton doesn't yet exist. * * Use singleton() or singletonFactory() to lazily create singletons. */ export declare const getSingleton: (key: string) => A | null; /** * This code creates a *true* singleton that will never be duplicated across webpack module loads. * If the singleton already exists then it is returned, otherwise a new one is created from the * provided constructor. * * Two situations that force the need for true singletons are preloads and storage adapters. In * both cases, code is being inserted (as a preload or a