import { type Dispatch, type SetStateAction } from "react"; import type { UiRefsTree, UiStateTreeItem, UiStaticTreeView } from "./types.js"; /** * @internal **/ export declare function makeItemId(treeViewId: string, path: number[]): string; /** * @internal **/ export declare function getItemOnFocusedPath(items: UiStaticTreeView[], focusedPath: number[]): UiStaticTreeView | undefined; /** * @internal **/ export declare function getRefOnFocusedPath(items: UiRefsTree, focusedPath: number[]): HTMLDivElement | null | undefined; type ItemsState = [ Record, Dispatch>> ]; type GetItemState = (path: number[]) => [ UiStateTreeItem, { toggle: (state: boolean) => void; toggleAll: (state: boolean) => void; } ]; /** * @internal **/ export declare function itemsState(state: ItemsState, defaultItem: UiStateTreeItem, opts: { expansionMode: "multiple" | "single"; }): GetItemState; /** * @internal **/ export declare function findPath(items: UiStaticTreeView[], id: string | undefined, isFocusableItem: (item?: UiStaticTreeView) => boolean): number[] | undefined; export declare function getPrevPathIndex(items: UiStaticTreeView[], getState: ReturnType, path: number[], isFocusableItem: (item?: UiStaticTreeView) => boolean): number[]; export declare function getNextPathIndex(items: UiStaticTreeView[], getState: ReturnType, path: number[], isFocusableItem: (item?: UiStaticTreeView) => boolean): number[]; export declare function getParentPathIndex(items: UiStaticTreeView[], getState: ReturnType, path: number[], isFocusableItem: (item?: UiStaticTreeView) => boolean): number[]; export declare function convertPathToKey(path: number[]): string; export declare function convertKeyToPath(key: string): number[]; export {}; //# sourceMappingURL=utils.d.ts.map