import { AnyClass } from './typeUtils'; export default class DynamicSingleton { static create(classDef: T & any, ...args: ConstructorParameters): I; static getInstance(classDef: T & any): I | undefined; /** * This method loads the instance of the singleton and returns it. * If the instance is not found, the method throws an error. * @param classDef */ static getInstanceSafe(classDef: T): T['prototype']; }