import { Accessibility, HierarchicalTreeItemBehaviorProps } from '@fluentui/accessibility'; import { ComponentWithAs } from '@fluentui/react-bindings'; import { HierarchicalTreeProps } from './HierarchicalTree'; import { HierarchicalTreeTitleProps } from './HierarchicalTreeTitle'; import { UIComponentProps, ChildrenComponentProps } from '../../utils'; import { ComponentEventHandler, ShorthandRenderFunction, ShorthandValue, ShorthandCollection, FluentComponentStaticProps } from '../../types'; export interface HierarchicalTreeItemSlotClassNames { subtree: string; } export interface HierarchicalTreeItemProps extends UIComponentProps, ChildrenComponentProps { /** Accessibility behavior if overridden by the user. */ accessibility?: Accessibility; /** Only allow one subtree to be open at a time. */ exclusive?: boolean; /** The index of the item among its sibbling */ index?: number; /** Array of props for sub tree. */ items?: ShorthandValue | ShorthandCollection; /** Called when a tree title is clicked. */ onTitleClick?: ComponentEventHandler; /** Whether or not the subtree of the item is in the open state. */ open?: boolean; /** * A custom render iterator for rendering each Accordion panel title. * The default component, props, and children are available for each panel title. * * @param Component - The computed component for this slot. * @param props - The computed props for this slot. * @param children - The computed children for this slot. */ renderItemTitle?: ShorthandRenderFunction; /** Properties for TreeTitle. */ title?: ShorthandValue; } export declare const hierarchicalTreeItemClassName = "ui-hierarchicaltree__item"; export declare const hierarchicalTreeItemSlotClassNames: HierarchicalTreeItemSlotClassNames; export declare type HierarchicalTreeItemStyles = never; /** * A TreeItem renders an item of a Tree. * * @accessibility * Implements [ARIA TreeView](https://www.w3.org/TR/wai-aria-practices-1.1/#TreeView) design pattern. */ export declare const HierarchicalTreeItem: ComponentWithAs<'li', HierarchicalTreeItemProps> & FluentComponentStaticProps;