import { PropTypes } from '@zag-js/react'; import { Optional } from '../../types'; import { TreeCollection, TreeNode } from '../collection'; import * as treeView from '@zag-js/tree-view'; export interface UseTreeViewProps extends Optional, 'dir' | 'getRootNode' | 'collection'>, 'id'> { /** * The collection of tree nodes */ collection: TreeCollection; } export interface UseTreeViewReturn extends treeView.Api { } export declare const useTreeView: (props: UseTreeViewProps) => UseTreeViewReturn;