import * as React from 'react'; import { TreeItemProps } from '../TreeItem'; export declare const hasSubtree: (item: string | number | boolean | React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)> | React.ReactNodeArray | React.ReactPortal | TreeItemProps | import("../../../types").ObjectShorthandValue) => boolean; export declare const removeItemAtIndex: (items: any[], itemIndex: number) => any[]; export declare const getAllSelectableChildrenId: (items: TreeItemProps[]) => string[]; export declare const isAllGroupChecked: (items: TreeItemProps[], selectedItemIds: string[]) => boolean; /** * Looks for the item inside the nested items array and returns its siblings. * @param {any[]} items The nested items array. * @param {string} itemId The id of the item to return the children of. * @returns {any[]} The item siblings */ export declare const getSiblings: (items: any[], itemId: string) => any[]; export declare const processItemsForSelection: (treeItemProps: TreeItemProps, selectedItemIds: string[]) => string[]; export interface TreeRenderContextValue { onFocusFirstChild: (itemId: string) => void; onFocusParent: (itemId: string) => void; onSiblingsExpand: (e: React.SyntheticEvent, itemProps: TreeItemProps) => void; onTitleClick: (e: React.SyntheticEvent, itemProps: TreeItemProps, executeSelection?: boolean) => void; } export declare const TreeContext: React.Context;