import { DraggableAttributes } from "@dnd-kit/core"; import { SyntheticListenerMap } from "@dnd-kit/core/dist/hooks/utilities"; import React from "react"; import { PointerActivationConstraint } from "@dnd-kit/core/dist/sensors/pointer/AbstractPointerSensor"; declare type IdType = string | number; export interface Props { list?: T[]; onChange?: (list: T[]) => void; rowKey: IdType | ((val: T) => IdType); activationConstraint?: PointerActivationConstraint; children: (params: { item: T; index: number; style: React.CSSProperties; props: any; setActivatorNodeRef: (element: HTMLElement | null) => void; listeners: SyntheticListenerMap; attributes: DraggableAttributes; }) => React.ReactElement; } export default function Sortable>({ list, onChange, rowKey, children, activationConstraint, }: Props): React.JSX.Element; export interface SortableItemProps { id: number; index: number; disabled?: boolean; children: (params: { item: T; index: number; style: React.CSSProperties; props: any; setActivatorNodeRef: (element: HTMLElement | null) => void; listeners: SyntheticListenerMap; attributes: DraggableAttributes; }) => React.ReactElement; item: T; } export declare function SortableItem({ id, index, item, children, disabled, }: SortableItemProps): React.ReactElement>; export {};