import { ObjectID } from "../driver/mongodb/typings"; /** * A single property handler for FindOptionsRelations. */ export declare type FindOptionsRelationsProperty = Property extends Promise ? FindOptionsRelationsProperty> | boolean : Property extends Array ? FindOptionsRelationsProperty> | boolean : Property extends Function ? never : Property extends Buffer ? never : Property extends Date ? never : Property extends ObjectID ? never : Property extends object ? FindOptionsRelations | boolean : boolean; /** * Relations find options. */ export declare type FindOptionsRelations = { [P in keyof Entity]?: FindOptionsRelationsProperty>; }; /** * Relation names to be selected by "relation" defined as string. * Old relation mechanism in TypeORM. * * @deprecated will be removed in the next version, use FindOptionsRelation type notation instead */ export declare type FindOptionsRelationByString = string[];