/// <reference types="react" />
import { SortDirection } from "@metabase/embedding-sdk-react/dist/frontend/src/metabase-types/api/sorting";
import type { BaseRow } from "./types";
export declare const useTableSorting: <Row extends BaseRow>({ rows, defaultSortColumn, defaultSortDirection, formatValueForSorting, locale, }: {
    rows: Row[];
    defaultSortColumn?: string;
    defaultSortDirection?: SortDirection;
    formatValueForSorting: (row: Row, columnName: string) => any;
    locale: string;
}) => {
    sortColumn: string | undefined;
    sortDirection: SortDirection;
    setSortColumn: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
    setSortDirection: import("react").Dispatch<import("react").SetStateAction<SortDirection>>;
    sortedRows: Row[];
};
