import { CommandBuilder } from '../command-builder'; import { AddCommand } from '../commands/add-command'; import { Entity } from '../entity'; import { EntitySet } from '../entity-set'; /** * Add command builder. * * @type {AddCommandBuilder} */ export declare class AddCommandBuilder extends CommandBuilder, TEntity, TEntity> { /** * Entity which should be added. * * @type {TEntity} */ protected entity: TEntity; /** * Constructor. * * @param {EntitySet} entitySet Entity set. * @param {TEntity} entity Entity which should be added. */ constructor(entitySet: EntitySet, entity: TEntity); /** * Builds a command. * * @returns {AddCommand} Add command. */ build(): AddCommand; /** * Attaches entity for creation. * * @param {TEntity} entity Entity which should be added. * * @returns {AddCommandBuilder} Add command builder. */ attach(entity: TEntity): AddCommandBuilder; /** * Adds attached entity. * * @returns {Promise} Added entity. */ add(): Promise; } //# sourceMappingURL=add-command-builder.d.ts.map