import type { SortingState, OnChangeFn } from "@tanstack/react-table";
export interface SortInfo {
    field: string;
    order: "ascend" | "descend";
}
interface UseTableSortOptions {
    sorting?: SortingState;
    onSortingChange?: OnChangeFn<SortingState>;
    onSort?: (sort: SortInfo | null) => void;
    enableURLSort?: boolean;
}
export declare const useTableSort: ({ sorting: controlledSorting, onSortingChange: controlledOnSortingChange, onSort, enableURLSort, }: UseTableSortOptions) => {
    sorting: SortingState;
    onSortingChange: OnChangeFn<SortingState>;
};
export {};
