import { PropsWithChildren, ReactElement, KeyboardEventHandler, AriaAttributes } from 'react'; import TreeCollection from './collection/treeCollection'; import { AdditionalDefault, IdCollectionPredicate, TreeModel } from './collection/types'; import { RenderItem } from './types'; interface ItemProps extends PropsWithChildren { collection: TreeCollection; parentId?: TreeModel['id']; item: TreeModel; leavesOnly?: boolean; checkSelectable?: IdCollectionPredicate; isExpanded: boolean; isSelected: boolean; isDisabled: boolean; singleChoice?: boolean; isIndeterminate: boolean; isSearch: boolean; onExpansion: (id: string) => void; onChange: (id: string, isSelected: boolean) => void; renderItemForDesktop?: RenderItem; cache: Record; isTabbed: boolean; focusedId?: string; onKeyDown?: KeyboardEventHandler; } export declare const Item: (props: ItemProps & AriaAttributes) => ReactElement; export {};