import { ViewContainerRef, ComponentFactoryResolver, TemplateRef } from '@angular/core'; import { TemplateService } from './template.service'; /** * This directive is used internally for two purposes. Firstly, to allow for communication between an instance of [AbstractTableCell]{@link AbstractTableCell} and the `ViewContainer` of the inner `NgContainer` element. Secondly, to dynamically create a `TemplateRef` that is required by the [AbstractTableCell]{@link AbstractTableCell} instance to [inputify]{@link documentation/injectables/AbstractTableCell.html#source} a table cell * * Should only be used in a `` element, within a `HTMLTableElement`, see [the examples]{@link /demo/#/examples/basic} for for more detail. * */ export declare class AnchorDirective { private cfr; /** * A promise that is inspected by all instancs of `AnchorDirective` to make sure `InputComponent` is only resolved once [see the constructor ]{@link AnchorDirective#constructor}. */ private static InputTemplateComponentTemplatePromise; vc: ViewContainerRef; /** * A reference to the angular template of `HTMLInputElement`. It becomes available only after `InputTemplateComponentTemplatePromise` has been resolved, which happens when [resolveTemplate]{@link AnchorDirective#resolveTemplate} has been called. */ InputTemplateComponentTemplateRef: TemplateRef; /** * A callback function set by instances of [AbstractTableCell directive]{@link AbstractTableCell#constructor} to expose the input element `TemplateRef`. * @param TemplateRef tpl The `TemplateRef` as extracted from the InputComponent, [see the constructor]{@link AnchorDirective#constructor}. */ private templateSetter; constructor(cfr: ComponentFactoryResolver, vc: ViewContainerRef, ts: TemplateService); /** * Called by instances of [AbstractTableCell directive]{@link AbstractTableCell} to retrieve the `TemplateRef` of the input element. */ resolveTemplate(): Promise; }