import { DataKeys, ItemSpec } from '@ui-schema/kit-dnd'; import { List } from 'immutable'; import React from 'react'; import { ConnectDragSource, ConnectDropTarget, ConnectDragPreview } from 'react-dnd'; export interface DraggableBaseProps { id: string; index: number; dataKeys: DataKeys; scope?: string; } export interface DraggableRendererProps extends DraggableBaseProps { isFirst: boolean; isLast: boolean; } export declare const useDraggable: ({ item, allowedTypes, scope: localScope, refRoot, }: { item: S; allowedTypes: string[] | List | undefined; scope?: string | undefined; refRoot: React.MutableRefObject; }) => { isOver: boolean; canDrop: boolean; drop: ConnectDropTarget; isDragging: boolean; drag: ConnectDragSource; preview: ConnectDragPreview; setDisableDrag: React.Dispatch>; canDrag: boolean; };