/** * A tree node. */ declare class TreeNode { private _parent; private _children; /** * Gets or sets the node's content. */ content: T; /** * Initializes a new TreeNode instance. * * @param parent The node's parent. */ constructor(parent?: TreeNode | null); /** * Gets the node's parent. */ get parent(): TreeNode | null; /** * Gets the node's children. */ get children(): Array>; /** * Adds the specified node to the current node's children collection. * * @param child The node that is to be appended to the current node's children collection. */ addChild(child: TreeNode): void; /** * Gets a value that specifies whether the node is a root. */ isRoot(): boolean; /** * Gets a value that specifies whether the node is a leaf. */ isLeaf(): boolean; } export { TreeNode };