import { type HtmlHTMLAttributes, type ReactNode } from 'react';
import type { BaseComponentProps } from '../../types/base';
export interface KernTableColumn {
id?: string;
label: string;
numeric?: boolean;
/**
* Gets or transforms the value into the desired format.
* NOTE: To format values use `valueFormatter` instead
*
* @param value
* @returns
*/
valueGetter?: (value: KernTableCellValue) => KernTableTransformedCellValue;
/**
* Formats the given value to the desired output format.
* NOTE: Use `valueGetter` to perform data transformations and then use valueFormmater to fornat the value properly
*
* @param value
* @returns
*/
valueFormatter?: (value: KernTableTransformedCellValue) => KernTableRenderableCellValue;
}
export type KernTableCellValue = string | number | boolean | object;
export type KernTableTransformedCellValue = Exclude;
export type KernTableRenderableCellValue = KernTableTransformedCellValue | ReactNode;
export type KernTableRow = Record;
export interface KernTableProps extends BaseComponentProps, never> {
title?: string;
columns: (string | KernTableColumn)[];
rows: Array;
footer?: Array;
striped?: boolean;
small?: boolean;
responsive?: boolean;
}
/**
* KernTable - A table displays data in a tabular format, allowing for easy comparison and quick comprehension of information.
*
* @example
* ```tsx
*
* ```
*
* @see https://www.kern-ux.de/komponenten/table
*/
declare const KernTable: ({ title, columns, rows, striped, small, responsive, footer, }: KernTableProps) => import("react/jsx-runtime").JSX.Element;
export default KernTable;
//# sourceMappingURL=kern-table.d.ts.map