import { FC } from 'react'; import { Column, EventWithColumnKey } from '../../../types'; export interface TableHeadProps { /** * The table columns to be rendered */ columns: Column[]; /** * Text alignment for all table cells. Can be superseded by passing the same prop into the `Column` object * for a specific column. */ align?: 'left' | 'right' | 'center'; /** * Custom class to be applied to the `` element. */ className?: string; /** * Whether the table has borders or not. */ isBorderless?: boolean; /** * Whether the table rows have smaller padding */ isCompact?: boolean; /** * If table scrolls vertically, header will remain stuck to the top of the table, and not scroll away. */ hasStickyHeader?: boolean; /** * Callback function to fire on sorting one of the table headers. */ onSort?: (event: EventWithColumnKey) => void; /** * The key of the sorted column and its sort direction. */ sortedColumn?: { dataKey: string | undefined; sortDirection: 'none' | 'ascending' | 'descending' | undefined; }; /** * Truncate overflow inside column based on column width. Can be overwritten on specific columns, * by passing `truncateOverflow` value on a specific Column */ truncateOverflow?: boolean; expandColumn?: Column; } export declare const TableHead: FC;