import type { MutableRefObject } from "react";
import type { UniqueIdentifier } from "@dnd-kit/core";
export interface TreeItem<T = any> {
    id: UniqueIdentifier;
    children: TreeItem<T>[];
    collapsed?: boolean;
    data: T;
}
export type TreeItems<T = any> = TreeItem<T>[];
export interface FlattenedItem<T = any> extends TreeItem<T> {
    parentId: UniqueIdentifier | null;
    depth: number;
    index: number;
}
export type SensorContext<T = any> = MutableRefObject<{
    items: FlattenedItem<T>[];
    offset: number;
}>;
