import type { DragStartEvent, Modifier, SensorDescriptor } from "@dnd-kit/core";
type ItemId = number | string;
export type DragEndEvent = {
    id: ItemId;
    newIndex: number;
    itemIds: ItemId[];
};
export type RenderItemProps<T> = {
    item: T;
    id: ItemId;
    isDragOverlay?: boolean;
};
type useSortableListProps<T> = {
    items: T[];
    getId: (item: T) => ItemId;
    renderItem: ({ item, id, isDragOverlay }: RenderItemProps<T>) => JSX.Element;
    onSortStart?: (event: DragStartEvent) => void;
    onSortEnd?: ({ id, newIndex }: DragEndEvent) => void;
    sensors?: SensorDescriptor<any>[];
    modifiers?: Modifier[];
    useDragOverlay?: boolean;
};
export declare const SortableList: <T>({ items, getId, renderItem, onSortStart, onSortEnd, sensors, modifiers, useDragOverlay, }: useSortableListProps<T>) => import("react/jsx-runtime").JSX.Element;
export {};
