import { DataUnit } from '@sankhyalabs/core';
import { IGridConfig } from '@sankhyalabs/ezui/dist/types/components/ez-grid/controller/EzGridController';
export interface CrudFindResult {
  fields: Map<string, string>;
}
export declare class CrudUtils {
  static assertDefaultSorting(gridConfig: IGridConfig, dataUnit: DataUnit): void;
  static parseCrudResults(entities: any, onlyFirst: boolean): CrudFindResult[] | CrudFindResult;
  static find(entityName: string, fields: Array<string>, criteria: Map<string, string>, onlyFirst: boolean, criteriaExpression: string, orderBy: string): Promise<unknown>;
}
