import { ViewContainerRef, ComponentRef, EnvironmentInjector } from '@angular/core';
import { ComponentInstance } from 'ngx-puzzle/core';
import * as i0 from "@angular/core";
export declare class ComponentInjectorService {
    private envInjector;
    private containerRef;
    private componentRefs;
    constructor(envInjector: EnvironmentInjector);
    setContainerRef(ref: ViewContainerRef): void;
    createComponent(instance: ComponentInstance, isEdit?: boolean): ComponentRef<any> | null;
    destroyComponent(id: string): void;
    /**
     * 清理所有组件引用和容器
     */
    clearAll(): void;
    /**
     * 获取所有组件引用的数量，用于调试
     */
    getComponentCount(): number;
    /**
     * 检查是否有指定ID的组件
     */
    hasComponent(id: string): boolean;
    static ɵfac: i0.ɵɵFactoryDeclaration<ComponentInjectorService, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<ComponentInjectorService>;
}
