import { TableState, UpdateTableState, TableConfig, TableData } from '../../types'; export type ServiceFactory = (getState: () => TableState, update: UpdateTableState, getData?: () => T[], config?: TableConfig) => T; export type ServiceFactoryConfig = (getState: () => TableState, update: UpdateTableState, config: TableConfig, getData?: () => T[]) => TableData;