import Cmf from "cmf.lbos"; export declare class QueryService { private _generic; /** * This method restores the entities that are selected in the grid, populating its properties and relations * @param filters List of filters with all the entity types that the query concerns * @param relations List of relations * @param sourceObject The source object to extract the properties from */ restoreEntity(filters: Cmf.Foundation.BusinessObjects.QueryObject.EntityFilterCollection, relations: Cmf.Foundation.BusinessObjects.QueryObject.RelationCollection, sourceObject: any): Promise; /** * This method builds a relation from scratch. It requires the EntityRelation and source/target entities * @param entityToUpdate Entity to set the relation collection on * @param relationToSet EntityRelation instance * @param relationName Name of the relation being created * @param sourceEntity source entity of the relation * @param targetEntity target entity of the relation */ buildRelation(entityToUpdate: Cmf.Foundation.BusinessObjects.Entity, relationToSet: Cmf.Foundation.BusinessObjects.EntityRelation, relationName: string, sourceEntity: Cmf.Foundation.BusinessObjects.Entity, targetEntity: Cmf.Foundation.BusinessObjects.Entity): Cmf.Foundation.BusinessObjects.EntityRelation; }