import { GenericObject } from "@mongez/reinforcements"; import { Model } from "./model"; import { Filter } from "./types"; export declare class RelationshipWithMany { protected model: Model; protected relatedModel: typeof Model; protected column: string; /** * Constructor */ constructor(model: Model, relatedModel: typeof Model, column: string); /** * Add the given model to the relationship */ add(model: Model | GenericObject): Promise; /** * Create and add the given model to the relationship */ create(data: any): Promise; /** * Remove the given model from the relationship */ remove(model: Model): Promise; /** * Get all related models */ list(filter?: Filter): Promise; } //# sourceMappingURL=RelationshipWithMany.d.ts.map