///
import { GetRowDetailsMeta, GetRowKey, GetRowMeta, GridApi, GroupedColumns, OnFiltersChange, RenderRowDetails, RowState, Theme, StateSetter } from '@lightgrid/core';
import '@lightgrid/core/dist/style.css';
import { N } from './types';
interface DataGridProps {
/** An array of column definitions (required) */
columns: GroupedColumns;
/**
* Required if columns need to change e.g. you have enabled resizing or
* re-ordering
*/
onColumnsChange?: (columnns: GroupedColumns) => void;
/**
* The `filterComponent` is passed this via the `onChange` arg to be called
* when the user changes the value of the filter
*/
onFiltersChange?: OnFiltersChange;
/** The row height of column headers in pixels. Defaults to 40 */
headerRowHeight?: number;
/** The row height of filter headers in pixels. Defaults to 40 */
filterRowHeight?: number;
/** Given a row data item should return a unique ID for the row (required) */
getRowKey: GetRowKey;
/**
* An optional function which can return the height of the row, as well as if
* it has row details. Row height defaults to 40px
*/
getRowMeta?: GetRowMeta;
/**
* If a row has row details, this function can return the height of that
* details row. Row details height defaults to 160px.
*/
getRowDetailsMeta?: GetRowDetailsMeta;
/** The array of data to render in the datagrid (required) */
data: T[];
/**
* The array of data to render in the datagrid which should be pinned to the
* top
*/
pinnedTopData?: T[];
/**
* The array of data to render in the datagrid which should be pinned to the
* bottom.
*/
pinnedBottomData?: T[];
/** Row state is required when grouping rows or showing row details */
rowState?: RowState;
/**
* A setter for row state passed to cell components so that grouping or row
* details can be expanded or collapsed. You can also pass custom state to row
* cells
*/
setRowState?: StateSetter>;
/**
* A function given the row item which should render what goes in the row
* details area
*/
renderRowDetails?: RenderRowDetails;
/**
* A custom theme object or the built in `lightTheme` or `darkTheme`. Defaults
* dark.
*/
theme?: Theme;
/** Whether to allow sorting by multiple columns or not. Defaults to false. */
multiSort?: boolean;
/** Whether the user can select cells */
enableCellSelection?: boolean;
/** Whether the user can resize columns */
enableColumnResize?: boolean;
/** Whether the user can re-order columns */
enableColumnReorder?: boolean;
/** Shows a custom loading overlay on top of the body area of the datagrid */
loadingOverlay?: N;
/** Pass custom classes into the datagrid element */
className?: string;
/** Pass custom inline styles into the data element */
style?: React.CSSProperties;
gridApi?: React.MutableRefObject;
}
export declare function DataGrid({ columns, onColumnsChange, onFiltersChange, headerRowHeight, filterRowHeight, getRowKey, getRowMeta, getRowDetailsMeta, data, pinnedTopData, pinnedBottomData, rowState, setRowState, renderRowDetails, theme, multiSort, enableCellSelection, enableColumnResize, enableColumnReorder, loadingOverlay, className, style, gridApi, }: DataGridProps): import("react/jsx-runtime").JSX.Element;
export {};