/** * Removes objects from an array where the parent attribute is not null. * @param {Array} arr - The array of objects. */ export function removeChildren(arr: Array): void; /** * Flatten nested children arrays within an array of objects. * @param {Array} arr - The array of objects. */ export function flattenNestedChildren(arr: Array): void; /** * Applies a hierarchical filter to an array of objects. * @param {Array} arr - The array of objects. * @param {Function} filterFn - The filter function to apply on each object. */ export function hierarchicalFilter(arr: Array, filterFn: Function): void; /** * Derives the hierarchy from the data. * * @param {Array} data - The data to derive the hierarchy from. * @param {string} path - The column name to be used as hierarchical path. * @param {string} separator - The separator to be used in the path. * @returns {Array} - The derived hierarchy. */ export function deriveHierarchy(data: any[], options: any): Array; /** * Toggles the expansion state of a node and updates the visibility of its children accordingly. * If the node is a parent (has child nodes), it will invert its 'isExpanded' property and call * 'changeVisibilityForChildren' to reflect changes to its child nodes. * * @param {Object} node - The node to toggle expansion for. The node is expected to have an * 'isParent' property indicating if the node has children, an * 'isExpanded' property indicating if the node is expanded, and an array * of child nodes under the 'children' property if it is a parent. */ export function toggleExpansion(node: Object): void;