import { Accessibility, HierarchicalTreeBehaviorBehaviorProps } from '@fluentui/accessibility'; import { HierarchicalTreeItemProps } from './HierarchicalTreeItem'; import { HierarchicalTreeTitleProps } from './HierarchicalTreeTitle'; import { UIComponentProps, ChildrenComponentProps } from '../../utils'; import { ShorthandRenderFunction, ShorthandCollection, ComponentEventHandler, FluentComponentStaticProps } from '../../types'; import { ComponentWithAs } from '@fluentui/react-bindings'; export interface HierarchicalTreeProps extends UIComponentProps, ChildrenComponentProps { /** Index of the currently active subtree. */ activeIndex?: number[] | number; /** Accessibility behavior if overridden by the user. */ accessibility?: Accessibility; /** Initial activeIndex value. */ defaultActiveIndex?: number[] | number; /** Only allow one subtree to be open at a time. */ exclusive?: boolean; /** Shorthand array of props for Tree. */ items?: ShorthandCollection; /** * A custom render function for the title slot. * * @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; /** Called when activeIndex changes. * * @param event - React's original SyntheticEvent. * @param data - All props and proposed value. */ onActiveIndexChange?: ComponentEventHandler; } export interface HierarchicalTreeState { activeIndex: number[] | number; } export declare const hierarchicalTreeClassName = "ui-hierarchicaltree"; export declare type HierarchicalTreeStylesProps = never; /** * (DEPRECATED) A Tree displays data organised in tree hierarchy. * * @accessibility * Implements [ARIA TreeView](https://www.w3.org/TR/wai-aria-practices-1.1/#TreeView) design pattern. */ export declare const HierarchicalTree: ComponentWithAs<'ul', HierarchicalTreeProps> & FluentComponentStaticProps;