import { BaseEntity, FindOperator, ObjectLiteral } from 'typeorm'; import { PrimaryKey, Profile } from '../../common'; import { AnyAuthRequest, AuthInfo } from '../../helper/interfaces'; import { ModelNameObject } from '../db'; export declare class RestHelper { static get({ model, id, profile, fields, relationsStr, }: { model: ModelNameObject; id: PrimaryKey; profile?: Profile; fields?: string; relationsStr?: string | string[]; }, { user, tenant, roles }: AnyAuthRequest): Promise; static save({ model, body }: { model: ModelNameObject; body: T; }, { user, tenant, roles }: AuthInfo): Promise; static unique(modelNameObject: ModelNameObject, column: string): Promise; static groupCounts(modelNameObject: ModelNameObject, where: string[] | FindOperator[] | null, column: string): Promise<{ [id: string]: { [name: string]: number; }; }>; }