import { DraggableAttributes, DraggableSyntheticListeners } from '@dnd-kit/core'; import { ComponentProps, Ref, Context } from 'react'; /** * SortableRow 通过此 context 向其内部 cell 暴露 dnd-kit 的激活器/监听器 * * 用 context 而非 prop 钻透,因为 cell 是用户自定义渲染函数,触不到 SortableRow 的局部变量 */ export type RowDragHandleContextValue = { attributes: DraggableAttributes; listeners: DraggableSyntheticListeners | undefined; setActivatorNodeRef: Ref; isDragging: boolean; } | null; export declare const RowDragHandleContext: Context; /** 在 cell 内任意位置放此组件即可成为行拖拽手柄 */ export declare function RowDragHandle({ className, ...props }: Omit, "ref" | "onMouseDown" | "onKeyDown" | "onTouchStart">): import("react/jsx-runtime").JSX.Element | null;