/** * Sorts a hierarchy based on a group of sorters. * * @param {Array} hierarchy - The hierarchy to sort. * @param {Array>} sortGroup - The group of sorters to apply. */ export function groupSort(hierarchy: Array, sortGroup: Array>): void; /** * Determines the selected state of a group of children in the hierarchy. * If all children are checked, returns 'checked'. * If all children are unchecked, returns 'unchecked'. * Otherwise, returns 'indeterminate'. * * @param {Array} children - The array of child objects with a 'selected' property. * @returns {string} The determined selected state: 'checked', 'unchecked', or 'indeterminate'. */ export function determineSelectedState(children: Array): string; /** * Toggles the selection state of a node in the hierarchy. * Depending on whether the node to toggle is a parent or child, * it will either select or deselect all children, or update the parent's selection state based on its children's states. * * @param {import('./types').Hierarchy} item - The node to toggle. * */ export function toggleSelection(item: import("./types").Hierarchy): void; /** * Creates a view object for managing data presentation with metadata and hierarchy structures, * as well as providing methods for sorting, selection, and toggling of data expansion. * * @param {Array} data - The source data array to be presented by the view. * @param {Object} options - The configuration options used for deriving metadata and hierarchy from the data. * @returns {import('svelte/store').Writable} An object representing the view, providing methods to manipulate and query the presentation state. */ export function dataview(data: Array, options: Object): import("svelte/store").Writable;