import type { DslDefinition } from '@oinone/kunlun-dsl'; import type { ActiveRecord, RuntimeContext, RuntimeEnumerationOption, RuntimeModel, RuntimeModelField } from '@oinone/kunlun-engine'; import { type StandardEnumerationValue } from '@oinone/kunlun-shared'; import type { SelectItem } from '@oinone/kunlun-vue-ui-common'; export declare const enumFetchLabelByValue: (value: any, options: RuntimeEnumerationOption[] | undefined) => string | undefined; export declare const multiEnumFetchLabelByValue: (value: any, options: RuntimeEnumerationOption[] | undefined) => string | undefined; export declare const singleEnumFetchOptionByValue: (value: StandardEnumerationValue, options: RuntimeEnumerationOption[] | undefined) => RuntimeEnumerationOption | undefined; export declare const multiEnumFetchOptionByValue: (value: StandardEnumerationValue[] | null | undefined, options: RuntimeEnumerationOption[] | undefined) => RuntimeEnumerationOption[] | undefined; export declare const enumFetchOptionByValue: (value: StandardEnumerationValue | StandardEnumerationValue[] | null | undefined, options: RuntimeEnumerationOption[] | undefined) => RuntimeEnumerationOption[] | undefined; export declare const numberAddThousandth: (num: any) => any; export declare const numberZeroFill: (value: string, precision: number | null | undefined) => string; export declare const stringIsAllNum: (str: string) => boolean; export declare const toCiphertext: (str: string) => string; export declare const arrSplit: (arr: any, size: any) => any[]; export declare enum ConstructSubmitType { /** * 当前视图全部字段 */ ALL = "ALL", /** * 当前视图全部字段 */ CURRENT = "CURRENT", /** * 主视图全部数据 */ ROOT = "ROOT", /** * 当前变更字段 */ SELF = "SELF", /** * 自定义当前视图字段 */ CUSTOM = "CUSTOM" } export declare function generatorConstructMirrorSubmitData(model: RuntimeModel, rootData: ActiveRecord, formData: ActiveRecord, submitData: ActiveRecord, options: { submitType: ConstructSubmitType; customSubmitFields?: string | string[]; }): ActiveRecord; export declare function clearFieldsDataFun(clearFields: any, data: any): boolean; export declare function optionsConvertSelectItem(options: RuntimeEnumerationOption[] | undefined): SelectItem[]; export declare const switchRelatedWidget: (widget: any, ttype: any, relatedType: any) => any; export declare function findRangeFields(runtimeContext: RuntimeContext, widgets: DslDefinition[]): { startField?: RuntimeModelField; endField?: RuntimeModelField; };