import { AriaGridListOptions, AriaGridListProps, GridListProps } from '../gridlist/useGridList'; import { DOMAttributes, KeyboardDelegate, RefObject } from '@react-types/shared'; import { TreeState } from 'react-stately/useTreeState'; export interface TreeProps extends GridListProps { } export interface AriaTreeProps extends Omit, 'keyboardNavigationBehavior'> { } export interface AriaTreeOptions extends Omit, 'children' | 'shouldFocusWrap'> { /** * An optional keyboard delegate implementation for type to select, * to override the default. */ keyboardDelegate?: KeyboardDelegate; } export interface TreeAria { /** Props for the treegrid element. */ gridProps: DOMAttributes; } /** * Provides the behavior and accessibility implementation for a single column treegrid component with interactive children. * A tree grid provides users with a way to navigate nested hierarchical information. * @param props - Props for the treegrid. * @param state - State for the treegrid, as returned by `useTreeState`. * @param ref - The ref attached to the treegrid element. */ export declare function useTree(props: AriaTreeOptions, state: TreeState, ref: RefObject): TreeAria;