import { ClassValue } from '@/types/attributes' // eslint-disable-next-line @typescript-eslint/no-explicit-any export type TableData = Record export type TableColumn> = { label: string, property?: T extends T ? keyof T : never, maxWidth?: string, minWidth?: string, width?: string, visible?: boolean, disabled?: boolean, } export type RowClassesMethod = (row: T, index: number) => ClassValue export type ColumnClassesMethod> = (column: TableColumn, value: unknown, index: number, row: TableData, rowIndex: number) => ClassValue export type HeaderClassesMethod> = (column: TableColumn, index: number) => ClassValue