import type { Identifier, Order } from "natural-orderby";
import type { Item, TableItem } from "../types.js";
/**
 * Takes a list of items and returns a sorted list of items and a sort descriptor.
 * @param items - The list of items to sort.
 * @returns An object containing the sorted items and a sort handler func
 */
export declare function useSortTableItems<TItem extends Item, TTableData extends TableItem<TItem>>(items: TTableData[] | undefined): {
    readonly sortedItems: TTableData[] | undefined;
    readonly sortHandler: (column: Identifier<TTableData>, direction: Order) => void;
};
//# sourceMappingURL=useSortTableItems.d.ts.map