import { RelationOptions } from "../options/RelationOptions"; import { ObjectType } from "../../common/ObjectType"; /** * Many-to-many is a type of relationship when Entity1 can have multiple instances of Entity2, and Entity2 can have * multiple instances of Entity1. To achieve it, this type of relation creates a junction table, where it storage * entity1 and entity2 ids. This is owner side of the relationship. */ export declare function ManyToMany(typeFunction: (type?: any) => ObjectType, options?: RelationOptions): Function; /** * Many-to-many is a type of relationship when Entity1 can have multiple instances of Entity2, and Entity2 can have * multiple instances of Entity1. To achieve it, this type of relation creates a junction table, where it storage * entity1 and entity2 ids. This is owner side of the relationship. */ export declare function ManyToMany(typeFunction: (type?: any) => ObjectType, inverseSide?: string | ((object: T) => any), options?: RelationOptions): Function;