import { type SetStateAction } from 'react'; /** * Sorts all rows for which drag and drop should be disabled by default to either the start or end of the DataTable. * * @param props - The object containing the initial row order, the set of rows for which * drag and drop should be disabled, and the position to which disabled rows should be * sorted and locked. * @returns - An object containing the set of rows for which drag and drop should be disabled, the adapted row order * with disabled rows sorted to the start or end of the table, and the function to update the row order * on drag and drop. * @public */ export declare function useLockedRowOrder(props: { initialRowOrder: string[]; lockedRows: string[]; position?: 'start' | 'end'; }): { rowOrdering: { enableDragAndDrop: boolean; disableRowDragAndDrop: (row: any) => boolean; lockDisabledRows: "end" | "start"; }; rowOrder: string[]; setRowOrder: (updater: SetStateAction) => void; };