import type { FormRelationshipT as Relationship, Transaction } from './types'; import type { ORM } from '..'; /** * Takes an array of relationships that should be set for the entity, and * compares it to the currently set list of relationships to determine the * difference. Compiles a list of affected entity BBIDs from this difference, * and then updates the relationship sets for all affected entities, and returns * these. If no entities are affected (there are no changes), an empty object * is returned. * * @param {ORM} orm - an initialized instance of bookbrainz-data-js * @param {Transaction} transacting - the current transaction * @param {any} oldSet - the RelationshipSet object for the old entity data * @param {Array} newSetItems - the edited RelationshipSet for the * entity * * @returns {Promise} a promise which resolves to a {BBID: RelationshipSet} * map */ export declare function updateRelationshipSets(orm: ORM, transacting: Transaction, oldSet: any, newSetItems: Array): Promise;