///
declare namespace Najs.Contracts.Eloquent {
interface FactoryBuilder {
/**
* Set the amount of models you wish to create / make.
*
* @param {number} amount
*/
times(amount: number): Pick>, 'create' | 'states' | 'make' | 'raw'>;
/**
* Set the states to be applied to the model.
*
* @param {string|string[]} state
*/
states(...state: Array): this;
/**
* Create an instance of model and persist them to the database.
* @param {Object} attributes
*/
create(attributes?: Object): Promise;
/**
* Create an instance of model.
*
* @param {Object} attributes
*/
make(attributes?: Object): T;
/**
* Create a raw attribute array.
*
* @param {Object} attributes
*/
raw(attributes?: Object): T;
}
}