import { RuntimeModel } from '@oinone/kunlun-engine';
import { 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<T>(modelModel: string, data: T, fields?: IModelField[], variables?: Entity, context?: Entity): Promise<T | undefined>;
    /**
     * 生成仅包含pks的对象
     * @param model 模型
     * @param record 数据记录
     */
    static generatorPksObject(model: RuntimeModel, record: Record<string, unknown>): Record<string, unknown> | undefined;
    /**
     * 生成仅包含pks的对象
     * @param pks 模型pks定义
     * @param record 数据记录
     */
    static generatorPksObjectByPks(pks: string[] | undefined, record: Record<string, unknown>): Record<string, unknown> | undefined;
    /**
     * 生成仅包含pks和uniques的对象
     * @param model 模型
     * @param record 数据记录
     */
    static generatorUniqueObject(model: RuntimeModel, record: Record<string, unknown>): Record<string, unknown>;
    static generatorSimpleCondition(obj: object): Condition | undefined;
    static generatorInCondition(list: object[], key: string): Condition | undefined;
    static generatorNotInCondition(list: object[], key: string): Condition | undefined;
}
