import { TerraNodeInterface } from './terra-node.interface'; import * as i0 from "@angular/core"; /** * @deprecated since v5. Use mat-tree instead. */ export declare class TerraNodeTreeConfig { protected _currentSelectedNode: TerraNodeInterface; private _list; /** * @description Adds a node. * @param nodeToAdd The provided node to add to the tree. * @param parent Optional. The provided parent where nodeToAdd should be added to. * @param openParents Optional. Open all parents. */ addNode(nodeToAdd: TerraNodeInterface, parent?: TerraNodeInterface, openParents?: boolean): void; /** * @description Adds a node to a given parentId. * @param parentId The identifier of the parent node. * @param node The node to be added. * @param openParents Optional. Open all parents. */ addChildToNodeById(parentId: string | number, node: TerraNodeInterface, openParents?: boolean): void; /** * @description Adds a list of nodes to a given parentId. * @param parentId The identifier of the parent node. * @param nodeList The node list to be added. * @param openParents Optional. Open all parents. */ addChildrenToNodeById(parentId: string | number, nodeList: Array>, openParents?: boolean): void; /** * @description Removes a given node. * @param node The node to be removed. */ removeNode(node: TerraNodeInterface): void; /** * @description Removes a node by ID. * @param id The ID of the node to be removed. */ removeNodeById(id: string | number): void; /** * @description Updates a node by given ID. * @param id The ID of the node. * @param newNode The node with the new data. */ updateNodeById(id: string | number, newNode: TerraNodeInterface): void; /** * @description Find an existing node by ID. * @param id The ID to find the correct node. */ findNodeById(id: string | number): TerraNodeInterface; /** * @description Find an existing node. * @param node The node to be found. */ findNode(node: TerraNodeInterface): TerraNodeInterface; /** * @description The list with all the nodes. */ get list(): Array>; /** * @description Set a list with all the nodes. * @param value The node list to be shown. */ set list(value: Array>); /** * @description Open all parents of given node. * @param node The node to open its parents. * @param isOpen Toggle open or not. */ toggleOpenParent(node: TerraNodeInterface, isOpen: boolean): void; /** * @description Close all nodes. */ closeAllNodes(): void; /** * @description Open all children of given node. * @param nodeList The node list to open its children. * @param isOpen Toggle open or not. */ toggleOpenChildren(nodeList: Array>, isOpen: boolean): void; /** * @description Call the lazy loading function of given node. * @param node The node where lazy loading is defined. */ handleLazyLoading(node: TerraNodeInterface): void; /** * @description Set a node as selected. * @param node The node to be set as selected. */ set currentSelectedNode(node: TerraNodeInterface); /** * @description Get the selected node. */ get currentSelectedNode(): TerraNodeInterface; /** * @description Reset the entire tree. */ reset(): void; /** * @description Set a node as selected by given ID. * @param id The ID to select a node. */ setCurrentSelectedNodeById(id: string | number): void; /** * @description Toggle the visibility for all children. * @param nodeList The node list to toggle visibility of its children. * @param isVisible Toggle visibility. */ toggleVisiblityForAllChildren(nodeList: Array>, isVisible: boolean): void; /** * @description Toggle the visibility for all parents. * @param parentNode The node to toggle visibility of its parent. * @param isVisible Toggle visibility. */ toggleVisibilityForAllParents(parentNode: TerraNodeInterface, isVisible: boolean): void; checkVisibilityAndAssignDefault(nodeList: Array>): void; checkDefaultAndAssignVisibility(nodeList: Array>): void; private internalRemoveNode; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵprov: i0.ɵɵInjectableDeclaration>; }