import React from 'react'; import { Column as RtColumn, Row as RtRow } from 'react-table'; import type { DataGridProcessedProps } from '../types'; /** * DataGrid에서 다루는 양식으로 필요한것만 입력받을 수 있도록 useTable를 래핑한것 */ declare function useDataGrid>({ columns, rows, slots, getRowId, checkboxSelection, initialState, selectionModel, onSelectionModelChange, onRowClick, disableSelectionOnClick, columnVisibilityModel, onColumnVisibilityModelChange, }: DataGridProcessedProps): { setContainerWidth: React.Dispatch>; data: readonly RowModel[]; checkboxSelection?: boolean | undefined; disableSelectionOnClick?: boolean | undefined; getRowId?: ((originalRow: RowModel, relativeIndex: number, parent?: RtRow | undefined) => string) | undefined; selectionModel?: import("react-table").IdType[] | undefined; onSelectionModelChange?: ((selectionModel: import("react-table").IdType[]) => void) | undefined; columnVisibilityModel?: Record, boolean> | undefined; onColumnVisibilityModelChange?: ((columnVisibilityModel: Record, boolean>) => void) | undefined; onRowClick?: ((params: { rowId: string; row: RowModel; }, event: React.MouseEvent) => void) | undefined; initialState?: Partial> | undefined; stateReducer?: ((newState: import("react-table").TableState, action: import("react-table").ActionType, previousState: import("react-table").TableState, instance?: import("react-table").TableInstance | undefined) => import("react-table").TableState) | undefined; useControlledState?: ((state: import("react-table").TableState, meta: import("react-table").MetaBase) => import("react-table").TableState) | undefined; defaultColumn?: Partial> | undefined; getSubRows?: ((originalRow: RowModel, relativeIndex: number) => RowModel[]) | undefined; autoResetHiddenColumns?: boolean | undefined; manualRowSelectedKey?: import("react-table").IdType | undefined; autoResetSelectedRows?: boolean | undefined; selectSubRows?: boolean | undefined; containerWidth?: number | undefined; selectionFieldId?: string | undefined; renderCheckbox?: React.ComponentType<{ onChange?: ((e: React.ChangeEvent) => void) | undefined; checked?: boolean | undefined; title?: string | undefined; indeterminate?: boolean | undefined; }> | undefined; state: import("react-table").TableState; plugins: import("react-table").PluginHook[]; dispatch: import("react-table").TableDispatch; columns: import("react-table").ColumnInstance[]; allColumns: import("react-table").ColumnInstance[]; visibleColumns: import("react-table").ColumnInstance[]; headerGroups: import("react-table").HeaderGroup[]; footerGroups: import("react-table").HeaderGroup[]; headers: import("react-table").ColumnInstance[]; flatHeaders: import("react-table").ColumnInstance[]; rows: RtRow[]; rowsById: Record>; getTableProps: (propGetter?: import("react-table").TablePropGetter | undefined) => import("react-table").TableProps; getTableBodyProps: (propGetter?: import("react-table").TableBodyPropGetter | undefined) => import("react-table").TableBodyProps; prepareRow: (row: RtRow) => void; flatRows: RtRow[]; totalColumnsWidth: number; allColumnsHidden: boolean; toggleHideColumn: (columnId: import("react-table").IdType, value?: boolean | undefined) => void; setHiddenColumns: (param: import("react-table").IdType[] | ((oldHidden: import("react-table").IdType[]) => import("react-table").IdType[])) => void; toggleHideAllColumns: (value?: boolean | undefined) => void; getToggleHideAllColumnsProps: (props?: Partial | undefined) => import("react-table").TableToggleHideAllColumnProps; getHooks: () => import("react-table").Hooks; toggleRowSelected: (rowId: import("react-table").IdType, set?: boolean | undefined) => void; toggleAllRowsSelected: (value?: boolean | undefined) => void; getToggleAllRowsSelectedProps: (props?: Partial | undefined) => import("react-table").TableToggleAllRowsSelectedProps; getToggleAllPageRowsSelectedProps: (props?: Partial | undefined) => import("react-table").TableToggleAllRowsSelectedProps; isAllRowsSelected: boolean; selectedFlatRows: RtRow[]; preSortedRows: RtRow[]; setSortBy: (sortBy: import("react-table").SortingRule[]) => void; toggleSortBy: (columnId: import("react-table").IdType, descending?: boolean | undefined, isMulti?: boolean | undefined) => void; selectionModelChange: (selectionModel: import("react-table").IdType[], isSelected: boolean) => void; }; export { useDataGrid };