import type { ColumnDef } from '@tanstack/react-table'; import { type JSX } from 'react'; import type { SimpleTableV2ColumnDef, SimpleTableV2GroupColumnDef, SimpleTableV2RowData } from '../public.api.js'; /** * Custom cell renderer function. * @public */ export type SimpleTableV2CustomCell = (props: { /** Raw value of the cell that is rendered. */ value: TValue; /** Index of the row the rendered cell is in. */ rowIndex: number; /** Data of the entire row the rendered cell is in. */ rowData: TData; /** Id of the row the rendered cell is in. */ rowId: string; }) => JSX.Element; /** * @internal * TypeGuard helper to verify that a given external columnDef is a GroupColumnDef */ export declare function isSimpleTableV2GroupColumnDef(columnDef: unknown): columnDef is SimpleTableV2GroupColumnDef; /** * Helper hook that will calculate which columns are enabled within the SimpleTable * @internal */ export declare function useColumns(propColumns: SimpleTableV2ColumnDef[]): ColumnDef[];