/* Copyright IBM Corp. 2018 */ import { OnDestroy } from '@angular/core'; import { Observable, ReplaySubject } from 'rxjs'; import { CYCLE_HANDLING, RenderingContext } from './../../../api'; import { ComponentTypeRef } from './../../../ng-api'; import { ComponentsService } from './../../services/components/components.service'; import { LayoutMappingService } from './../../services/mappings/mappings.service'; import { WchService } from './../../services/wch.service'; import { AbstractRenderingComponent } from './../rendering/abstract-rendering.component'; /** * Combines the active pieces of the state into one single object */ export declare type ComponentState = [ComponentTypeRef, RenderingContext, string]; export declare class ContentrefComponent extends AbstractRenderingComponent implements OnDestroy { cycleHandlingStrategy?: CYCLE_HANDLING | string; renderingContext: RenderingContext; layoutMode: string; /** * Output that will be triggered when a new component was created */ readonly onComponent: ReplaySubject; /** * The current type to render */ readonly onType: Observable>; /** * The component state */ readonly onState: Observable; constructor(aCmp: ComponentsService, aMapping: LayoutMappingService, aWchService: WchService); ngOnDestroy(): void; }