import * as React from 'react'; import { EventHandlers } from '@mui/base/utils'; import type { TreeViewContextValue } from '../TreeViewProvider'; import { TreeViewAnyPluginSignature, TreeViewPlugin, ConvertPluginsIntoSignatures, MergePluginsProperty } from '../models'; export type UseTreeViewParameters[]> = { rootRef?: React.Ref | undefined; plugins: TPlugins; } & MergePluginsProperty, 'params'>; export type UseTreeViewDefaultizedParameters[]> = { rootRef?: React.Ref | undefined; plugins: TPlugins; } & MergePluginsProperty, 'defaultizedParams'>; export interface UseTreeViewRootSlotProps extends Pick, 'onFocus' | 'onBlur' | 'onKeyDown' | 'id' | 'aria-activedescendant' | 'aria-multiselectable' | 'role' | 'tabIndex'> { ref: React.Ref; } export interface UseTreeViewReturnValue { getRootProps: (otherHandlers?: TOther) => UseTreeViewRootSlotProps; rootRef: React.RefCallback | null; contextValue: TreeViewContextValue; }