import type { FocusEventHandler, KeyboardEventHandler, MouseEventHandler } from "react";
import type { KeyboardMovementProviderImplementation } from "../movement/types.js";
import type { NonNullMutableRef } from "../types.js";
import type { TreeItemMetadataLookup } from "./TreeProvider.js";
import type { TreeData, TreeItemNode } from "./types.js";
import type { TreeExpansion } from "./useTreeExpansion.js";
import type { TreeItemChildIds } from "./useTreeItems.js";
/**
 * @remarks \@since 6.0.0
 * @internal
 */
interface TreeMovementOptions<T extends TreeItemNode> extends TreeExpansion {
    data: TreeData<T>;
    onClick: MouseEventHandler<HTMLUListElement> | undefined;
    onFocus: FocusEventHandler<HTMLUListElement> | undefined;
    onKeyDown: KeyboardEventHandler<HTMLUListElement> | undefined;
    selectedIds: ReadonlySet<string>;
    treeItemChildIds: TreeItemChildIds;
}
/**
 * @remarks \@since 6.0.0
 * @internal
 */
interface TreeMovement extends KeyboardMovementProviderImplementation<HTMLUListElement> {
    /**
     * This will be mutated by the `TreeItem` component and used to handle
     * keyboard movement.
     */
    metadataLookup: NonNullMutableRef<TreeItemMetadataLookup>;
}
/**
 * @remarks \@since 6.0.0
 * @internal
 */
export declare function useTreeMovement<T extends TreeItemNode>(options: TreeMovementOptions<T>): TreeMovement;
export {};
