import * as react_jsx_runtime from 'react/jsx-runtime'; import * as React from 'react'; import { ColumnDef } from './types.js'; import '../../lib/table-properties-types.js'; import '../../lib/column-cell-kind.js'; import '../../lib/status-badge-tints.js'; declare const ROW_DRAG_COLUMN_KEY = "drag"; /** * The leading control column that holds each row's grip. Locked left like the * select column; narrow, so it costs one 6-unit grip of width. */ declare const ROW_DRAG_COLUMN: ColumnDef; /** Prepends the drag column (before `select` when present) for `onRowsReorder` tables. */ declare function withRowDragColumn>(columns: ColumnDef[]): ColumnDef[]; type RowMove = "up" | "down" | "top" | "bottom"; interface RowReorderHandleProps { rowId: string | number; /** Row name for assistive tech, e.g. the primary column value. */ label: string; /** When set the handle is inert and `title` explains why (sorted, grouped…). */ disabledReason?: string; canMoveUp: boolean; canMoveDown: boolean; onMove: (move: RowMove) => void; onDragStart: (e: React.DragEvent) => void; onDragEnd: () => void; } /** * The one control for reordering a row, three ways: drag it; focus it and press * Alt+↑/↓; or open its menu (Move up / down / to top / to bottom) — the * single-pointer alternative to dragging (WCAG 2.5.7). */ declare function RowReorderHandle({ rowId, label, disabledReason, canMoveUp, canMoveDown, onMove, onDragStart, onDragEnd, }: RowReorderHandleProps): react_jsx_runtime.JSX.Element; export { ROW_DRAG_COLUMN, ROW_DRAG_COLUMN_KEY, type RowMove, RowReorderHandle, withRowDragColumn };