UNPKG

@mui/x-tree-view

Version:

The community edition of the MUI X Tree View components.

8 lines 570 B
import * as React from 'react'; import type { TreeViewDefaultItemModelProperties, TreeViewValidItem } from "../models/index.mjs"; import type { TreeViewPublicAPI } from "../internals/models/index.mjs"; import type { RichTreeViewStore } from "../internals/RichTreeViewStore/index.mjs"; /** * Creates the ref to pass to the `apiRef` prop of the `RichTreeView` component. */ export declare function useRichTreeViewApiRef<R extends TreeViewValidItem<R> = TreeViewDefaultItemModelProperties>(): React.RefObject<TreeViewPublicAPI<RichTreeViewStore<R, boolean>> | undefined>;