import type { RuntimeModel } from '@oinone/kunlun-engine'; import type { Entity, IModelField } from '@oinone/kunlun-meta'; import { Condition } from '@oinone/kunlun-request'; export declare class FunctionConstant { static readonly FUNCTION_DEFINITION = "base.Function"; } export declare class FetchUtil { static fetchOne(modelModel: string, data: T, fields?: IModelField[], variables?: Entity, context?: Entity): Promise; /** * 生成仅包含pks的对象 * @param model 模型 * @param record 数据记录 */ static generatorPksObject(model: RuntimeModel, record: Record): Record | undefined; /** * 生成仅包含pks的对象 * @param pks 模型pks定义 * @param record 数据记录 */ static generatorPksObjectByPks(pks: string[] | undefined, record: Record): Record | undefined; /** * 生成仅包含pks和uniques的对象 * @param model 模型 * @param record 数据记录 */ static generatorUniqueObject(model: RuntimeModel, record: Record): Record; static generatorSimpleCondition(obj: object): Condition | undefined; static generatorInCondition(list: object[], key: string): Condition | undefined; static generatorNotInCondition(list: object[], key: string): Condition | undefined; }