declare namespace NajsEloquent.Model { class IModelFillable { /** * The attributes that are mass assignable. */ protected fillable?: string[]; /** * The attributes that aren't mass assignable. */ protected guarded?: string[]; } interface IModelFillable { /** * Get the fillable attributes for the model. */ getFillable(): string[]; /** * Set the fillable attributes for the model. Warning: this function reset all fillable setting included static. */ setFillable(fillable: string[]): this; /** * Add temporary fillable attributes for the model. * * @param {string|string[]} keys */ addFillable(...keys: Array): this; /** * Determine if the given attribute may be mass assigned. * * @param {string} key */ isFillable(...keys: Array): boolean; /** * Get the guarded attributes for the model. */ getGuarded(): string[]; /** * Set the guarded attributes for the model. Warning: this function reset all guarded setting included static. */ setGuarded(guarded: string[]): this; /** * Add temporary guarded attributes for the model. * * @param {string|string[]} keys */ addGuarded(...keys: Array): this; /** * Determine if the given key is guarded. * * @param {string} key */ isGuarded(...keys: Array): boolean; /** * Fill the model with an array of attributes. * * @param {Object} data */ fill(data: object): this; /** * Fill the model with an array of attributes. Force mass assignment. * * @param {Object} data */ forceFill(data: object): this; } }