import { DataUnitLoaderUtils, } from '@sankhyalabs/core';
export function applyFilter(records, dataUnit, filters) {
  return DataUnitLoaderUtils.applyFilter(records, dataUnit, filters);
}
export function buildLoadDataResponse(recordsIn, dataUnit, request) {
  return DataUnitLoaderUtils.buildLoadDataResponse(recordsIn, dataUnit, request);
}
export function applySorting(records, dataUnit, sorting) {
  return DataUnitLoaderUtils.applySorting(records, dataUnit, sorting);
}
export function getPagesByRecords(records, offset = 0, limit = 0) {
  return DataUnitLoaderUtils.getPagesByRecords(records, offset, limit);
}
export function buildPaginationInfo({ recordsLength = 0, offset = 0, recordsPerPage = 0, }) {
  return DataUnitLoaderUtils.buildPaginationInfo({ recordsLength, offset, recordsPerPage });
}
