import { CommandBuilder } from '../command-builder'; import { SaveCommand } from '../commands/save-command'; import { Entity } from '../entity'; import { EntitySet } from '../entity-set'; /** * Save command builder. * * @type {SaveCommandBuilder} */ export declare class SaveCommandBuilder extends CommandBuilder, TEntity, TEntity> { /** * Entity which should be saved. * * @type {TEntity} */ protected entity: TEntity; /** * Constructor. * * @param {EntitySet} entitySet Entity set. * @param {TEntity} entity Entity which should be saved. */ constructor(entitySet: EntitySet, entity: TEntity); /** * Builds a command. * * @returns {SaveCommand} Save command. */ build(): SaveCommand; /** * Attaches entity for save. * * @param {TEntity} entity Entity which should be saved. * * @returns {SaveCommandBuilder} Save command builder. */ attach(entity: TEntity): SaveCommandBuilder; /** * Saves attached entity. * * @returns {Promise} Saved entity. */ save(): Promise; } //# sourceMappingURL=save-command-builder.d.ts.map