export declare const filterRootIds: (filter: any[], rootIds: any[]) => any[]; /** * @param {string[]} includedPaths * @param {string} path * @returns {bool} */ export declare const isPathIncluded: (includedPaths: any[], path: string) => boolean; export declare const leftTrimToRootId: (path: string, rootId: any) => string; export declare const sortNodeChildrenAlphabetically: (children: any) => any[]; /** * @param {string[]} initiallyExpanded * @returns {string[]} */ export declare const getAllExpandedPaths: (initiallyExpanded: any[]) => any; /** * Note by JGS: I can't recall why this is necessary, * but it's there.. So I guess it's better to leave it in for now * and investigate why this is necessary in the first place! * Maybe we can omit this completely and remove the state from * the useRootOrgData hook entirely * @TODO: Investigate if this could be removed * * @param {Object[]} nodes * @returns {} */ export declare const patchMissingDisplayName: (nodes: ArrayLike | { [s: string]: any; }) => any; /** * Checks wether there are descendants of a path in the * array of selected paths * * @param {string} path * @param {string[]} selected * @returns {bool} */ export declare const hasDescendantSelectedPaths: (path: string | RegExp, selected: any[]) => boolean; /** * Returns all the childrenIds that should be rendered. * An id will be included if it's parent's path + the id is inside * the "filter" or the parent's path + id is a substring * of the paths in "filter" (then it's a parent path of * the units that should be included itself) * * @param {Object} node * @param {Object[]} node.children * @param {string[]} includedPaths * @returns {string[]} */ export declare const computeChildNodes: (node: { children: any[]; path: any; }, filter: any[]) => any[]; /** * Get Node paths for roots * @param {*} roots * @returns */ export declare const getRootNodes: (roots: any[]) => any[]; /** * Determine if a certain level is enabled for selection * @param level * @param selectionLevel * @param enabled */ export declare const enableLevelSelection: (level: number, selectionLevel: number[] | undefined, enabled: boolean) => boolean;