import React from 'react'; import { DndContext, DropAnimation, PointerSensorOptions } from '@dnd-kit/core'; import { UseSortableArguments } from '@dnd-kit/sortable'; import type { FlattenedItem, ItemChangedReason, TreeItemComponentType, TreeItems } from './types'; export declare type SortableTreeProps, TElement extends HTMLElement> = { items: TreeItems; onItemsChanged(items: TreeItems, reason: ItemChangedReason): void; TreeItemComponent: TreeItemComponentType; indentationWidth?: number; indicator?: boolean; pointerSensorOptions?: PointerSensorOptions; disableSorting?: boolean; dropAnimation?: DropAnimation | null; dndContextProps?: React.ComponentProps; sortableProps?: Omit; keepGhostInPlace?: boolean; canRootHaveChildren?: boolean | ((dragItem: FlattenedItem) => boolean); }; export declare const dropAnimationDefaultConfig: DropAnimation; export declare function SortableTree, TElement extends HTMLElement = HTMLDivElement>({ items, indicator, indentationWidth, onItemsChanged, TreeItemComponent, pointerSensorOptions, disableSorting, dropAnimation, dndContextProps, sortableProps, keepGhostInPlace, canRootHaveChildren, ...rest }: SortableTreeProps): JSX.Element;