import { Accessibility, TreeTitleBehaviorProps } from '@fluentui/accessibility'; import { ComponentWithAs } from '@fluentui/react-bindings'; import { BoxProps } from '../Box/Box'; import { SupportedIntrinsicInputProps } from '../../utils/htmlPropsUtils'; import { UIComponentProps, ChildrenComponentProps, ContentComponentProps } from '../../utils'; import { ComponentEventHandler, FluentComponentStaticProps, ShorthandValue } from '../../types'; export interface TreeTitleSlotClassNames { indicator: string; } export interface TreeTitleProps extends UIComponentProps, ChildrenComponentProps, ContentComponentProps { /** Accessibility behavior if overridden by the user. */ accessibility?: Accessibility; /** Whether or not the title has a subtree. */ hasSubtree?: boolean; /** The index of the title among its siblings. Count starts at 1. */ index?: number; /** Level of the tree/subtree that contains this title. */ level?: number; /** * Called on click. * * @param event - React's original SyntheticEvent. * @param data - All props. */ onClick?: ComponentEventHandler; /** Whether or not the subtree of the title is in the open state. */ expanded?: boolean; /** Size of the tree containing this title without any children. */ treeSize?: number; /** Whether or not tree title is part of the selectable parent. */ selectableParent?: boolean; /** A selection indicator icon can be customized. */ selectionIndicator?: ShorthandValue; /** A selection indicator can appear disabled and be unable to change states. */ disabled?: SupportedIntrinsicInputProps['disabled']; /** A state of selection indicator. */ selected?: boolean; /** Whether or not tree title is selectable. */ selectable?: boolean; /** For selectable parents define if all nested children are checked */ indeterminate?: boolean; } export declare type TreeTitleStylesProps = Pick; export declare const treeTitleClassName = "ui-tree__title"; export declare const treeTitleSlotClassNames: { indicator: string; }; /** * A TreeTitle renders a title of TreeItem. */ export declare const TreeTitle: ComponentWithAs<'a', TreeTitleProps> & FluentComponentStaticProps;