import { ApplicationRef, ComponentFactoryResolver, ComponentRef, Injector } from '@angular/core'; export declare abstract class BaseService { protected list: Array>; protected abstract readonly resolver: ComponentFactoryResolver; protected abstract readonly applicationRef: ApplicationRef; protected abstract readonly injector: Injector; protected abstract readonly doc: Document; /** * 销毁 * * @param component 下标(从0开始或组件引用对象),或不指定时,销毁最新一个 */ destroy(component?: number | ComponentRef): void; /** * 销毁所有 */ destroyAll(): void; /** 动态构建组件 */ protected build(component: new (...args: any[]) => T): ComponentRef; }