import { type SortDirection } from '@tanstack/react-table'; import { type JSX, type PropsWithChildren } from 'react'; import { type IntlShape } from 'react-intl'; import type { Header } from '../hooks/useTable/types.js'; interface DataTableHeaderCellProps extends PropsWithChildren { /** * Header to be rendered with this header cell. */ header: Header; /** * All headers in the same group (row). */ headers: Header[]; /** * Header group id from the TanStack/table header object. */ headerGroupId: string; /** * RowIndex based on the virtualization index. */ rowIndex: number; /** * ColumnIndex based on the virtualization index. */ columnIndex: number; /** * The index of the last header row. */ lastRowIndex: number; } /** * Hook that gets the aria-label for the header according to the different table configurations. * * @param param0 - object containing everything to create the labels * according to the current table configuration. * @returns the aria label for the header cell. * @internal */ export declare function getHeaderAriaLabel({ intl, columnLabel, nextSortingOrder, canSort, columnDragAndDropMode, isCustomHeader, role, }: { intl: IntlShape; columnLabel: string; nextSortingOrder: false | SortDirection | undefined; canSort?: boolean; columnDragAndDropMode: 'none' | 'enabled' | 'only'; isCustomHeader: boolean; role: 'columnheader' | 'presentation'; }): string | undefined; export declare function DataTableHeaderCell(props: Readonly): JSX.Element | null; export declare namespace DataTableHeaderCell { var displayName: string; } export {};