import { FindAttributeOptions, Includeable, IncludeOptions, Order, WhereOptions } from "sequelize"; import { Model } from "sequelize-typescript"; import { WhereAttributeHashValue } from "sequelize/types/model"; import { RuleModel } from "./filter"; import { IncludeWhereModel } from "./models/include.model"; export interface GeoPoint { type: "point"; coordinates: number[]; } export declare class M extends Model { } export declare class SequelizeUtils { static reduceIncludes(includes: Array, ignoreAttributes?: boolean): Includeable[]; static mergeIncludes(a?: IncludeOptions | IncludeOptions[], b?: IncludeOptions | IncludeOptions[], ignoreAttributes?: boolean): IncludeOptions[]; static mergeAttributes(a: FindAttributeOptions, b: FindAttributeOptions): FindAttributeOptions; static ensureAttributesValidity(attribute: FindAttributeOptions): FindAttributeOptions; static mergeWhere(a: WhereOptions, b: WhereOptions): WhereOptions; static mergeOrder(a: Order, b: Order): Order; static generateWhereValue(rule: RuleModel): WhereAttributeHashValue; static getAttributeFullName(attribute: string, path: string): string; static getLiteralFullName(attribute: string, path: string | string[]): string; static getOrderFullName(attribute: string, path: string[]): string; static getModelSearchableAttributes(model: typeof M): string[]; static getModelSearchableFieldAttributes(model: typeof M, fields: string[]): string[]; static reduceModelFromPath(model: M, path: string): any; static findColumnFieldName(model: typeof M, name: string): string; static isColumnJson(model: typeof M, name: string): boolean; static getGroupLiteral(model: typeof M, group: string): string; static generateWhereConditions(model: IncludeWhereModel, options?: object): WhereOptions; }