import * as React from 'react'; import { IconProps } from 'react-magma-icons'; import { IndeterminateCheckboxStatus } from '../IndeterminateCheckbox'; export interface UseTreeItemProps extends React.HTMLAttributes { /** * Enables additional content within the TreeItem. */ additionalContent?: React.ReactNode; /** * Tree item hover color * @default transparent */ hoverColor?: string; /** * Icon for the tree item */ icon?: React.ReactElement; /** * If true, element is disabled * @default false */ isDisabled?: boolean; /** * Index number * private */ index?: number; /** * @internal */ itemDepth?: number; /** * Item id */ itemId: string; /** * Item name */ label: React.ReactNode; /** * Style properties for the tree item label */ labelStyle?: React.CSSProperties; /** * Action that fires when the item is clicked */ onClick?: () => void; /** * @internal */ parentDepth?: number; /** * @internal */ testId?: string; /** * @internal * Whether this item is a top-level item (no parent) */ topLevel?: boolean; /** * Style properties for the tree item */ treeItemStyles?: React.CSSProperties; /** * @internal * Used in virtualization to indicate this item has TreeItem children. */ hasTreeItemChildren?: boolean; /** @internal Direct child IDs retained when virtualization removes nested JSX. */ directChildItemIds?: string[]; } export declare const checkedStatusToBoolean: (status: IndeterminateCheckboxStatus) => boolean; export declare function useTreeItem(props: UseTreeItemProps, forwardedRef: any): { contextValue: { checkboxChangeHandler: (event: React.ChangeEvent) => void; checkedStatus: IndeterminateCheckboxStatus; expanded: boolean; hasOwnTreeItems: boolean; itemDepth: number; itemId: string; parentDepth: number; ref: (node: any) => void; selectedItems: import("./TreeViewSelectionContext").TreeItemSelectedInterface[]; treeItemChildren: React.ReactNode[]; isDisabled: boolean; }; handleClick: (event: React.SyntheticEvent | React.ChangeEvent, clickedItemId: string) => void; handleKeyDown: (event: React.KeyboardEvent) => void; };