import { type CellData, type Column_Internal, type Header, type Row, type RowData, type TableFeature, type TableFeatures } from '@tanstack/react-table'; import type { DataTableCustomSortingFn, RowSortingFeatureConstructors } from './sorting-types.js'; /** * Helper function to get the aria-sort attribute value for a header based on its sorting state. * @internal */ export declare function header_getAriaSortAttribute(header: Header): 'ascending' | 'descending' | 'none' | undefined; /** * Helper function to determine if sorting can be triggered by clicking on the header, based on the header and column properties. * @internal */ export declare function header_getCanSortByHeaderClick(header: Header): boolean; /** * Helper function to get the sorting value for a given row and column, utilizing caching for performance optimization. * @internal */ export declare function row_getSortingValue(row: Row, columnId: string): undefined | unknown; export declare function column_getCustomSortingFn(column: Column_Internal): DataTableCustomSortingFn; /** * Override the default getFirstSortDir * @internal */ export declare function column_getFirstSortDir(column: Column_Internal): "asc" | "desc"; /** * Override the default getNextSortingOrder as the original implementation calls column_getAutoSortDir from tanstack/table-core directly without a chance on our end to override. * @internal */ export declare function column_getNextSortingOrder(column: Column_Internal, multi?: boolean): false | "asc" | "desc"; /** * Overrides the default auto sort direction to always be ascending for the first sort, instead of toggling between ascending and descending. * * @internal */ export declare function column_getAutoSortDir(column: Column_Internal): 'asc'; /** * Overrides the default column_toggleSorting to allow toggling the sorting state by clicking on the header, while ensuring that interactions with interactive elements within the header do not trigger sorting. * Override is necessary as tanstack/table-core's default toggleSorting implementation does call column_getNextSortingOrder from tanstack internally and not the one we provide on the instance. * @internal */ export declare function column_toggleSorting(column: Column_Internal, desc?: boolean, multi?: boolean): void; /** * Overrides the default column_getToggleSortingHandler * Override is necessary as tanstack/table-core's default implementation does call `column_toggleSorting` from tanstack internally and not the one we provide on the instance. */ export declare function column_getToggleSortingHandler(column: Column_Internal): (e: unknown) => void; /** * Helper function to determine if a column is sortable based on its definition and the table's sorting configuration. * @internal */ export declare function column_getCanSort(column?: Column_Internal): boolean; /** * Constructs the column row sorting for the table, * including API implementations and prototype assignments. * @internal */ export declare function constructRowSortingFeature(): TableFeature>; /** * Feature implementation for Row Sorting. * @internal */ export declare const DataTableRowSortingFeature: TableFeature>;