import { CommonFieldComparisonBetweenType, FilterComparisonOperators } from '@ptc-org/nestjs-query-core'; import { mongoose } from '@typegoose/typegoose'; import { ReturnModelType } from '../typegoose-types.helper'; /** * @internal */ export type EntityComparisonField = Entity[F] | Entity[F][] | CommonFieldComparisonBetweenType | true | false | null; /** * @internal * Builder to create SQL Comparisons. (=, !=, \>, etc...) */ export declare class ComparisonBuilder { readonly Model: ReturnModelType Entity>; readonly comparisonMap: Record; static DEFAULT_COMPARISON_MAP: Record; constructor(Model: ReturnModelType Entity>, comparisonMap?: Record); /** * Creates a valid SQL fragment with parameters. * * @param field - the property in Entity to create the comparison for. * @param cmp - the FilterComparisonOperator (eq, neq, gt, etc...) * @param val - the value to compare to. */ build(field: F, cmp: FilterComparisonOperators, val: EntityComparisonField): mongoose.FilterQuery; private betweenComparison; private isBetweenVal; private likeComparison; private convertQueryValue; private convertToObjectId; }