import { CommandBuilder } from '../command-builder'; import { UpdateCommand } from '../commands/update-command'; import { Entity } from '../entity'; import { EntitySet } from '../entity-set'; /** * Update command builder. * * @type {UpdateCommandBuilder} */ export declare class UpdateCommandBuilder extends CommandBuilder, TEntity, TEntity> { /** * Entity which should be updated. * * @type {TEntity} */ protected entity: TEntity; /** * Constructor. * * @param {EntitySet} entitySet Entity set. * @param {TEntity} entity Entity which should be updated. */ constructor(entitySet: EntitySet, entity: TEntity); /** * Builds a command. * * @returns {UpdateCommand} Update command. */ build(): UpdateCommand; /** * Attaches entity for update. * * @param {TEntity} entity Entity which should be updated. * * @returns {UpdateCommandBuilder} Update command builder. */ attach(entity: TEntity): UpdateCommandBuilder; /** * Updates attached entity. * * @returns {Promise} Updated entity. */ update(): Promise; } //# sourceMappingURL=update-command-builder.d.ts.map