import { TableState, UpdateTableState, TableConfig } from '../../types'; import { ColumnService } from '../Column'; import { ExpandingRowService } from '../ExpandingRow'; import { ExpandAllService } from '../ExapandAll'; import { ResizableColumnService } from '../ResizableColumn'; import { SortService } from '../Sort'; import { SelectRowService } from '../SelectRow'; import { DraggableColumnService } from '../DraggableColumn'; import { ColumnGroupService } from '../ColumnGroup'; import { GroupByService } from '../GroupBy'; import { FilterService } from '../Filter'; import { ColoredRowsService } from '../ColoredRows'; import { HiddenRowsService } from '../HiddenRows'; import { TableBodyService } from '../TableBody/TableBodyService'; import { TableProps } from '../../Table'; interface RootService { sync: (state: TableState, data: T[]) => void; } export type TableService = RootService & TableBodyService & ColumnService & ExpandingRowService & ExpandAllService & ResizableColumnService & SortService & SelectRowService & DraggableColumnService & ColumnGroupService & GroupByService & FilterService & ColoredRowsService & HiddenRowsService; export type TableServiceFactory = (state: TableState, update: UpdateTableState, config: TableConfig, data: TableProps['data']) => TableService; export declare const tableService: (state: TableState, update: UpdateTableState, config: TableConfig, data: TableProps["data"]) => { getHideRows: () => string[]; hideRow: (id: string) => void; showRow: (id: string) => void; hideAllRows: () => void; showAllRows: () => void; getColoredRows: () => import("../ColoredRows").ColoredRowsState; getColoredRowColor: (id: import("../ColoredRows").ColoredRowsStateItem["id"]) => import("../ColoredRows").ColoredRowsStateItem["color"] | undefined; setColoredRows: (state: import("../ColoredRows").ColoredRowsState) => void; setColoredRowsItem: (newItem: import("../ColoredRows").ColoredRowsStateItem) => void; removeColoredRowsItem: (id: import("../ColoredRows").ColoredRowsStateItem["id"]) => void; removeAllColoredRows: () => void; toggleColoredRow: (item: import("../ColoredRows").ColoredRowsStateItem) => void; toggleSingleColoredRow: (item: import("../ColoredRows").ColoredRowsStateItem) => void; getFilter: () => import("../Filter").FilterState | undefined; getFilterColumn: (id: string) => unknown; setFilter: (id: string, value: K) => void; getGroupBy: () => import("../GroupBy").GroupByOption | undefined; setGroupBy: (id: string) => void; setGroupByOptions: (options: import("../GroupBy").GroupByOption[], selected?: string) => void; isGroupExpanded: (id: string) => boolean; toggleExpandingGroup: (id: string) => void; getExpandingGroup: (id: string) => import("../GroupBy").GroupByProps | undefined; toggleExpandingAllGroups: () => void; columnGroupSpan: (id: string) => number; moveColumn: (target: string, destination: string) => void; getSelectedRows: (currentState?: TableState | undefined) => T[]; getData: () => T[]; isRowSelected: (id: T | import("../../types").TableItemGroupByType>, selectedItems?: (T | import("../GroupBy").GroupTitleInterface)[] | undefined) => boolean; isRowIndeterminated: (id: T) => boolean; isRowCheckboxDisabled: (id: T) => boolean; selectRow: (item: T, onSuccess?: ((state: TableState) => void) | undefined) => void; disableCheckboxRow: (items: T[]) => void; indeterminateRow: (item: T, onSuccess?: ((state: TableState) => void) | undefined) => void; disableCheckbox: (item: T, onSuccess?: ((state: TableState) => void) | undefined) => void; deselectRow: (item: T, onSuccess?: ((state: TableState) => void) | undefined) => void; toggleSelectRow: (item: "all" | T, data: import("../SelectRow").SelectDataObject, onSuccess?: ((state: TableState) => void) | undefined) => void; toggleSelectGroup: (group: import("../GroupBy").GroupTitleInterface, isSelect: boolean, onSuccess?: ((state: TableState) => void) | undefined) => void; isGroupSelected: (group: import("../GroupBy").GroupTitleInterface) => boolean; isGroupIndeterminated: (group: import("../GroupBy").GroupTitleInterface) => boolean; isSelectedAll: (data: (T | import("../GroupBy").GroupTitleInterface)[], selectedItems?: (T | import("../GroupBy").GroupTitleInterface)[] | undefined) => boolean; selectAll: (items: T[], onSuccess?: ((state: TableState) => void) | undefined) => void; deselectAll: (onSuccess?: ((state: TableState) => void) | undefined) => void; getSortColumn: () => import("../Sort").SortState | undefined; setSortColumn: (field: string, direction: import("../../types").SortDirection, onSort?: TableProps["onSort"]) => void; resetSort: () => void; setColumnWidth: (id: string, width: string) => void; isAllExpanded: () => boolean; toggleExpandingAll: () => void; getExpandingRow: () => import("../ExpandingRow").ExpandingRowState | undefined; getExpandedRow: () => string | string[] | undefined; isRowExpanded: (rowId: string) => boolean; toggleExpandingRow: (rowId: string) => void; getExpandingRowSettings: () => { width: string; allowMultiple: import("../ExpandingRow").ExpandingRowProps["allowMultiple"]; noPadding?: import("../ExpandingRow").ExpandingRowProps["noPadding"]; attrs?: Omit, "children" | "customWrapper" | "allowMultiple" | "onExpand" | "noPadding"> | undefined; expandedRow?: string | string[]; onExpand?: import("../../..").OnChangeHandler, null> | undefined; } | undefined; toggleExpandingAllRows: () => void; allColumns: () => import("../Column").AugmentedColumn[]; columns: () => import("../Column").AugmentedColumn[]; getHiddenColumns: () => import("..").HiddenColumnsState; colSpan: () => number; hideColumn: (id: ReturnType["dataKey"]>) => void; showColumn: (id: ReturnType["dataKey"]>) => void; hideAllColumns: () => void; showAllColumns: () => void; togglePinnedColumn: (id: string) => void; columnsOffsets: () => Map; setVisibleRows: (rowIds: string[]) => void; setAllRows: (rowIds: string[]) => void; sync: (state: TableState, data: T[]) => void; }; export {};