import { CommandBuilder } from '../command-builder'; import { RemoveCommand } from '../commands/remove-command'; import { Entity } from '../entity'; import { EntitySet } from '../entity-set'; /** * Remove command builder. * * @type {RemoveCommandBuilder} */ export declare class RemoveCommandBuilder extends CommandBuilder, TEntity, TEntity> { /** * Entity which should be removed. * * @type {TEntity} */ protected entity: TEntity; /** * Constructor. * * @param {EntitySet} entitySet Entity set. * @param {TEntity} entity Entity which should be removed. */ constructor(entitySet: EntitySet, entity: TEntity); /** * Builds a command. * * @returns {RemoveCommand} Remove command. */ build(): RemoveCommand; /** * Attaches entity for remove. * * @param {TEntity} entity Entity which should be removed. * * @returns {RemoveCommandBuilder} Remove command builder. */ attach(entity: TEntity): RemoveCommandBuilder; /** * Removes attached entity. * * @returns {Promise} Removed entity. */ remove(): Promise; } //# sourceMappingURL=remove-command-builder.d.ts.map