/* Copyright IBM Corp. 2018 */ import { ComponentFactoryResolver } from '@angular/core'; import { CONTENT_ITEM_KIND, RenderingContext } from './../../../api'; export interface LayoutComponentDirective { selector?: string | string[]; mappingId?: string | string[]; layoutMode?: string | string[]; /** * The optional component factory resolver used to instantiate the component */ componentFactoryResolver?: ComponentFactoryResolver; } export declare type RenderingContextDirective = (ctx: RenderingContext) => T; export interface LayoutMappingDirective { selector?: string | string[]; layoutMode?: string | string[]; /** * Type IDs or content IDs to map this to */ id?: string | string[]; /** * Type IDs to map this to */ kind?: CONTENT_ITEM_KIND | CONTENT_ITEM_KIND[]; }