import { SchemaType } from "zeroetp-api-sdk";
export declare function arrayMoveMutable(array: any[], fromIndex: number, toIndex: number): void;
export declare function arrayMoveImmutable(array: any[], fromIndex: number, toIndex: number): any[];
export declare const getLatestOrder: (data?: Record<string, any>[]) => string;
declare const useSort: ({ data, reload, schema, }: {
    data?: Record<string, any>[];
    reload?: (...args: any[]) => void;
    schema?: SchemaType;
}) => {
    onSortEnd: ({ oldIndex, newIndex, }: {
        oldIndex: number;
        newIndex: number;
    }) => Promise<void>;
    sorting: boolean;
    sort: boolean;
    onSortStart: () => void;
    sortedData: Record<string, any>[];
};
export default useSort;
