import { Node } from '../Utils/TreeUtils'; export declare type OntologyNode = Node; }; }>; export interface Ontology { name: string; tree: OntologyNode; } /** * Get a sub-tree from an Ontology. The `leafPredicate` function * is used to find the leaves of the tree to return. * * @param {Ontology} ontology * @param {Function} leafPredicate */ export declare function getTree(ontology: Ontology, leafPredicate: (node: T) => boolean): Node; /** * Callback to provide the node children * @param node - given node * @returns {Array} child nodes */ export declare let getNodeChildren: (node: Node) => Node[]; export declare let nodeHasChildren: (node: Node) => boolean; export declare let nodeHasProperty: (name: string, value: string, node: Node) => boolean; export declare let getPropertyValues: (name: string, node: Node) => string[]; export declare let getPropertyValue: (name: string, node: Node) => string; //# sourceMappingURL=OntologyUtils.d.ts.map