import type { ComponentPropsWithoutRef, ReactNode } from 'react'; import { type LumenGlassProp } from './components.js'; export type DataTableCell = boolean | null | number | string | undefined | { label?: boolean | null | number | string; sortValue?: boolean | null | number | string; value?: boolean | null | number | string; }; export interface DataTableColumn { header?: string; key: string; label?: string; sort?: 'number' | 'string'; sortable?: boolean; /** Rich display content does not change the underlying sortable value. */ render?: (cell: DataTableCell, row: DataTableRow) => ReactNode; wide?: boolean; } export type DataTableRow = Record & { id?: number | string; rowValue?: number | string; value?: number | string; }; export interface DataTableSort { direction: 'ascending' | 'descending'; key: string; } export interface DataTableProps extends ComponentPropsWithoutRef<'div'> { columns?: DataTableColumn[]; defaultSort?: DataTableSort | null; glass?: LumenGlassProp; name?: string; onSortChange?: (sort: DataTableSort | null) => void; rows?: DataTableRow[]; sort?: DataTableSort | null; sortMode?: 'client' | 'manual'; selectable?: boolean; layout?: 'records' | 'scroll'; renderDetails?: (row: DataTableRow) => ReactNode; expandedRowIds?: readonly string[]; defaultExpandedRowIds?: readonly string[]; onExpandedRowIdsChange?: (ids: string[]) => void; expandLabel?: string; collapseLabel?: string; detailsLabel?: string; } export declare const DataTable: ({ children, className, columns: rawColumns, defaultSort, defaultExpandedRowIds, expandedRowIds, expandLabel, collapseLabel, detailsLabel, glass, layout, name, onExpandedRowIdsChange, onSortChange, renderDetails, rows: rawRows, sort: controlledSort, sortMode, selectable, ...props }: DataTableProps) => import("react").JSX.Element; export interface DataTableSortControlsProps extends ComponentPropsWithoutRef<'div'> { columns: readonly DataTableColumn[]; sort: DataTableSort | null; onSortChange: (sort: DataTableSort | null) => void; disabled?: boolean; label?: string; directionLabel?: string; ascendingLabel?: string; descendingLabel?: string; placeholder?: string; } /** A named mobile/toolbar path to the same controlled server sort as table headers. */ export declare const DataTableSortControls: ({ columns: rawColumns, sort, onSortChange, disabled, label, directionLabel, ascendingLabel, descendingLabel, placeholder, className, ...props }: DataTableSortControlsProps) => import("react").JSX.Element; //# sourceMappingURL=data-table.d.ts.map