import { Observable } from 'rxjs'; import { BaseTreeControl } from './base-tree-control'; /** Nested tree control. Able to expand/collapse a subtree recursively for NestedNode type. */ export declare class NestedTreeControl extends BaseTreeControl { getChildren: (dataNode: T) => Observable; /** Construct with nested tree function getChildren. */ constructor(getChildren: (dataNode: T) => Observable); /** * Expands all dataNodes in the tree. * * To make this working, the `dataNodes` variable of the TreeControl must be set to all root level * data nodes of the tree. */ expandAll(): void; /** Gets a list of descendant dataNodes of a subtree rooted at given data node recursively. */ getDescendants(dataNode: T): T[]; /** A helper function to get descendants recursively. */ private _getDescendants; }