/** * Object holding user provided and automatically generated tokens. * * This holder can be used in order to overwrite or add more tokens * which will be used for dependency injection later */ export interface InjectablesHolder { /** * Injects class annotated with `@Service` decorator. * This class will be instantiated on demand when token requested. * * @param token to identify service, can be service class itself * @param service to instantiate when requested by token */ injectService(token: unknown, service: unknown): void; /** * Injects singleton object, number or anything else. * * When token requested, DI will just return this value * * @param token to identify object/singleton * @param singleton to return when requested by token */ injectSingleton(token: unknown, singleton: unknown): void; } export declare const injectablesHolder: InjectablesHolder;