import type { Query } from '../datapage/types'; export type DataViewCall = { paging: undefined; filterDataOnClient: (searchText: string, clientSideData: { [key: string]: string; }[]) => { [key: string]: string; }[]; dataViewParameters: { [param: string]: any; } | undefined; query: Query; }; export type DataViewCallCombiner = (dataViewCallA: DataViewCall, dataViewCallB: DataViewCall) => void; export type DataViewCallComparator = (promise: DataViewCall, newDataViewCall: DataViewCall) => boolean; export type DataViewCallSeparator = (combinedDataViewCall: DataViewCall & { dataViewCallMap: { [identifier: string]: { promise: Promise; resolve: (value: unknown) => void; }; }; }, data: unknown) => void;