import { ModelField, OriginParams, PlainObject, SelectParams } from './type'; /** * 将面板输入的值转成 DSL * @param params 面板输入的值 * @param many 是否返回多条 * @returns 查询结果 */ export declare function buildQueryDSL(params: OriginParams, many?: boolean): PlainObject | undefined; /** * 运行时更新JSONQL中的筛选条件和聚合筛选条件 * 更新规则如下: * 1. JSONQL/where条件中的数值为null 和 undefined,则删除该条件; * 2. JSONQL/where条件中的数值为表达式,运算结果为null 和 undefined,则删除该条件。 */ export declare function updateJSONQLByWhere(jsonqlStr: string, queryParams: any): string; export declare function updateJSONWhere(jsonWhere: any, queryParams: any): any; export declare function getJSONQLByParams(jsonqlStr: string, queryParams: any): any; export declare function getJSONWhereByParams(jsonWhere: any, queryParams: any): any; export declare const CHART_DSL_PARAMS: string[]; /** * 将 condition builder 语法转成 jsonql 语法,目前只支持单层 * @param whereConditionRaw * @returns */ export declare function buildWhereJSONql(whereConditionRaw: any, relationModelFields: any[], modelFields?: any[]): any; export declare function buildHavingJSONql(havingConditionRaw: any, selectArr: SelectParams[]): { operator: any; children: any; }; export declare function buildJoinJSONql(modelFields: ModelField[], relationModelFields: any[], modelKey: string): any[]; export declare function saveCustomReportFields(type: string, reportFields: Array): void;