import { EDBEntity } from '@cromwell/core'; import { BaseEntity } from 'typeorm'; import { BasePageEntity } from '../models/entities/base-page.entity'; import { BaseEntityMeta, TEntityMeta } from '../models/entities/meta/base-meta.entity'; declare type TEntityMetaModel = BaseEntityMeta & TEntityMeta; declare class EntityMetaRepository { getMetaClass(entityType: EDBEntity): ((new (...args: any[]) => TEntityMetaModel) & typeof BaseEntity) | undefined; getEntityClass(entityType: EDBEntity): ((new (...args: any[]) => BasePageEntity) & typeof BaseEntity) | undefined; getEntityType(entityClass: any): EDBEntity | undefined; getEntityMetaByKey(type: EDBEntity, id: number, key: string): Promise; getEntityMetaValueByKey(type: EDBEntity, id: number, key: string): Promise; getEntityMetaByKeys(type: EDBEntity, id: number, keys?: string[]): Promise | undefined | null>; createEntityMeta(type: EDBEntity, entityId: number, key?: string, value?: string | null): Promise; /** * Set (create or update) meta record for provided entity or entity meta id * @param entity ORM Entity or entityMetaId * @param key Meta key * @param value Meta value * @returns Meta DB record */ setEntityMeta(type?: EDBEntity, entityId?: number, key?: string, value?: string | null): Promise; getAllEntityMetaKeys(type: EDBEntity): Promise; } export declare const entityMetaRepository: EntityMetaRepository; export {}; //# sourceMappingURL=entity-meta.d.ts.map