import { default as React } from 'react'; import { TreeItemContentRenderProps } from 'react-aria-components'; import { SafeOmit } from '../../../.deps/utils/src'; import { ScreenSize } from '../../../hooks/useScreenSize'; import { TreeItemKey } from '../useTreeState'; export interface TreeItemState extends TreeItemContentRenderProps { } export interface TreeItemRenderProps { /** The state of the tree item. */ state: TreeItemState; /** The unique key/value for the tree item. */ value: V; /** The original item data object. */ item: T; /** The text label to display for the item. */ label: string; /** Optional text description to display for the item. */ description?: string; /** Whether the item is currently loading its children. */ loading?: boolean; /** The current screen size. */ screenSize?: ScreenSize; /** Display checkbox error state. */ error?: boolean; /** Display checkbox warning state. */ warning?: boolean; } export interface TreeItemProps extends SafeOmit, 'item'> { /** Optional action buttons or elements to display for the item. */ actions?: React.ReactNode; } export declare function TreeItem({ state: { selectionMode, level, isExpanded, hasChildItems, allowsDragging, isSelected, state }, label, description, loading, actions, value, screenSize, error, warning, ..._rest }: TreeItemProps): React.JSX.Element;