import { TreeNode } from './tree-node' ; export interface TreeDataSource { getNodes ( node ? ) : Promise < TreeNode [ ] > ; searchNodes ( name ) : Promise < any > ; } export interface ITree { selectedNode : TreeNode ; generateId ( ) : number ; loadNode ( node ) : Promise < any > ; } export enum FilterState { FOUND , ON_FOUND_PATH , NOT_FOUND }