import { Accessibility } from '../../types'; /** * @description * Triggers 'performClick' action with 'Spacebar' on 'root', when tree item is selectable and has no subtree. In other cases 'performClick' is triggered with 'Spacebar' or 'Enter'. * Triggers 'performSelection' action with 'Spacebar' on 'root', when has a opened subtree. * @specification * Adds attribute 'aria-expanded=true' based on the property 'expanded' if the component has 'hasSubtree' property. * Adds attribute 'tabIndex=-1' to 'root' slot if 'hasSubtree' property is true. Does not set the attribute otherwise. * Adds attribute 'aria-setsize=3' based on the property 'treeSize' if the component has 'hasSubtree' property. * Adds attribute 'aria-posinset=2' based on the property 'index' if the component has 'hasSubtree' property. * Adds attribute 'aria-level=1' based on the property 'level' if the component has 'hasSubtree' property. * Adds attribute 'role=treeitem' to 'root' slot if 'hasSubtree' property is true. Sets the attribute to 'none' otherwise. * Triggers 'performClick' action with 'Enter' or 'Spacebar' on 'root'. * Triggers 'expandSiblings' action with '*' on 'root'. * Triggers 'focusParent' action with 'ArrowLeft' on 'root', when has a closed subtree. * Triggers 'collapse' action with 'ArrowLeft' on 'root', when has an opened subtree. * Triggers 'expand' action with 'ArrowRight' on 'root', when has a closed subtree. * Triggers 'focusFirstChild' action with 'ArrowRight' on 'root', when has an opened subtree. */ export declare const treeItemBehavior: Accessibility; export declare type TreeItemBehaviorProps = { /** If item is a subtree, it indicates if it's expanded. */ expanded?: boolean; level?: number; index?: number; hasSubtree?: boolean; treeSize?: number; selectable?: boolean; selected?: boolean; };