import { ExpressionOrValueEnum } from "./enums/expression-or-value-enum"; import * as moment from "moment"; import { DatabaseHelper } from "../database-helper"; import { ProjectionBuilder } from "../crud/projection-builder"; import { Expression, LambdaExpression, ReturnExpression } from "lambda-expression"; import { LambdaMetadata } from "./lambda-metadata"; import { ExpressionOrColumnEnum } from "./enums/expression-or-column-enum"; import { FieldType } from "./enums/field-type"; import { ColumnType } from "./enums/column-type"; import { ProjectionCompiled } from "../crud/projection-compiled"; import { ProjectionsHelper } from "./projections-helper"; import { ColumnParams } from "./column-params"; import { ColumnRef } from "./column-ref"; import { PlanRef } from "./plan-ref"; import { ReplacementParam } from "./replacement-param"; import { QueryBuilder } from "../crud"; import { MetadataTable } from "../metadata-table"; import { MetadataTableBase } from "../metadata-table-base"; import { QueryCompiled } from "."; import { Resultable } from "./resultable"; import { SqlCompilable } from "../crud/sql-compilable"; import { DatabaseResult } from "../definitions/database-definition"; export declare type ParamType = ValueType | ReplacementParam; export declare type ValueType = number | string | boolean; export declare type ValueTypeToParse = ValueType | moment.Moment | Date | object; export declare type TypeOrString = (new () => T) | string; export declare type TQuery = QueryCompiled[] | SqlCompilable; export declare type ExpressionOrColumn = ReturnExpression | string; export declare type ExpressionQuery = ExpressionOrColumn | TQuery; export declare type TypeOrderBy = ExpressionOrColumn | PlanRef | number | QueryCompiled | QueryCompiled[]; export declare type TypeWhere = Expression | ValueTypeToParse | ColumnRef | ProjectionsHelper | PlanRef; export declare type TypeProjection = ProjectionsHelper | ColumnRef | PlanRef; export declare type ExpressionProjection = TypeProjection | ExpressionOrColumn; export declare type ProjectionOrValue = ProjectionBuilder | ProjectionsHelper | ValueTypeToParse; export declare class Utils { static REPLACEABLE_ALIAS: string; static readonly DEFAULT_VALUES: { BOOLEAN: boolean; NUMBER: number; STRING: string; MOMENT: moment.Moment; DATE: Date; }; private static _expressionUtils; private static _databaseHelper; static GUID(): string; static isFlag(value: any, flag: any): boolean; static is(value: any, type: string): boolean; static isArray(value: any): value is any[]; static isString(value: any): boolean; static isObject(value: any): boolean; static isNumber(value: any): boolean; static isBoolean(value: any): boolean; static isOnlyNumber(value: any): boolean; static isNull(value: any): boolean; static isStartWithNumber(value: any): boolean; static isValueNumber(value: any): boolean; static isValueBoolean(value: any): boolean; static isReservedBoolean(value: any): boolean; static isFunction(value: any): boolean; static isDate(value: any): boolean; static isMoment(value: any): boolean; static isQuery(instance: any): boolean; static isQueryBuilder(instance: any): boolean; static isProjectionBuilder(projectionCandidate: any): boolean; static isProjectionCompiled(projectionCandidate: any): boolean; static isProjectionsHelper(projectionCandidate: any): boolean; static isValueType(value: ValueType): boolean; static isValueTypeToParse(value: any): boolean; static isWhereBuilder(whereCandidate: any): boolean; static isColumnRef(instance: any): boolean; static isPlanRef(instance: any): boolean; static isResultable(instance: any): instance is Resultable; static isEmpty(value: any): boolean; static isQueryCompiled(value: any): boolean; static isQueryCompiledArray(value: any): boolean; static isQueryCompilable(value: any): boolean; static isTQuery(value: any): boolean; static getMapperTable(typeT: (new () => T) | QueryBuilder | { _builder: () => QueryBuilder; }, getMapper: (tKey: (new () => any) | string) => MetadataTable): MetadataTableBase; static expressionOrColumn(value: ExpressionOrColumn): ExpressionOrColumnEnum; static expressionOrValue(value: TypeWhere): ExpressionOrValueEnum; static getColumn(expression: ExpressionOrColumn, separator?: string): string; static getColumnWhere(expression: TypeWhere): ColumnParams; static resolveExpressionProjection(projection: ExpressionProjection): ProjectionCompiled; static getFieldExpression(expression: Expression): string; static getValue(instance: any | Array, expression: ExpressionOrColumn): Array; static getValues(instance: Array, expression: ExpressionOrColumn): Array; static getTypeByValue(value: ValueTypeToParse): FieldType; static getType(instance: Array): FieldType; static getType(instance: ValueTypeToParse): FieldType; static getType(instance: any, expression: ExpressionOrColumn): FieldType; static getValueType(value: ValueTypeToParse | Array, type?: FieldType): Array; static getValuesType(values: Array, type?: FieldType): Array; static parseColumnType(type: FieldType): ColumnType; static isNameColumn(column: string): boolean; static isValue(value: any): boolean; static isValueDefault(value: any): boolean; static normalizeSqlString(inputSql: string): string; static getLambdaMetadata(expression: LambdaExpression): LambdaMetadata; static clearParam(param: ValueTypeToParse): ValueTypeToParse; static clearParamLambda(param: ValueTypeToParse): ValueTypeToParse; static addAlias(column: string | Resultable, alias: string): string; private static isColumnReservedNameOrNotAllowed; private static getLambdaColumnMetadata; private static conditionSql; private static isEquivalentNullExpression; private static getExpressionUtils; static getDatabaseHelper(): DatabaseHelper; static objectToDatabaseResult(rows: any[], rowsAffected?: number, insertId?: any): DatabaseResult; }