import { AbstractType, Type } from './type'; import { InjectionToken } from './injection-token'; /** * 查找规则 */ export declare enum InjectFlags { /** 默认查找规则 */ Default = "Default", /** 锁定当前容器 */ Self = "Self", /** 跳过当前容器 */ SkipSelf = "SkipSelf", /** 可选查找 */ Optional = "Optional" } /** * DI 容器抽象基类 */ export declare abstract class Injector { abstract parentInjector: Injector; abstract get(token: Type | AbstractType | InjectionToken, notFoundValue?: T, flags?: InjectFlags): T; }