license import { Directive , TemplateRef } from '@angular/core' ; /** Context provided to the tree node component. */ export class CdkTreeNodeOutletContext < T > { /** Data for the node. */ $implicit : T ; /** Depth of the node. */ level : number ; /** Index location of the node. */ index ? : number ; /** Length of the number of total dataNodes. */ count ? : number ; constructor ( data ) { this . $implicit = data ; } } /**
 * Data node definition for the CdkTree.
 * Captures the node's template and a when predicate that describes when this node should be used.
 */ @ Directive ( { selector : '[cdkTreeNodeDef]' , inputs : [ 'when: cdkTreeNodeDefWhen' ] , } ) export class CdkTreeNodeDef < T > { /**
     * Function that should return true if this node template should be used for the provided node
     * data and index. If left undefined, this node will be considered the default node template to
     * use when no other when functions return true for the data.
     * For every node, there must be at least one when function that passes or an undefined to
     * default.
     */ when : ( index : number , nodeData : T ) => boolean ; docs-private constructor ( public template ) { } }