import { DataSourceOption } from "../../common/BaseUI/DropdownRenderer/Reference"; import { FormItemType, InputExpressionValue } from "../../MagicExpressionWidget/types"; export declare const enum EXPRESSION_ITEM_TYPE { normal = "fields", input = "input", func = "methods" } export default interface Schema { title?: string; type: string; properties?: Record; required?: string[]; description?: string; items?: Schema; value: InputExpressionValue; encryption?: boolean; encryption_value?: string; sort?: number; default?: boolean | string; mock?: string | { mock: string; }; minLength?: number; maxLength?: number; minimum?: number; maximum?: number; pattern?: string; enum?: string[] | number[]; enumDesc?: string; format?: string; exclusiveMinimum?: boolean; exclusiveMaximum?: boolean; minItems?: number; maxItems?: number; uniqueItems?: boolean; } export interface CustomOptions { items?: FormItemType[]; normal?: FormItemType[]; root?: FormItemType[]; } /** 可被禁用的项枚举 */ export declare enum DisabledField { /** 字段名 */ Name = "key", Title = "title", Description = "description", Type = "type", Required = "required", Encryption = "encryption" } /** 自定义字段配置的显示 */ export type CustomFieldsConfig = { onlyExpression?: boolean; constantsDataSource?: DataSourceOption[]; allowOperation?: boolean; onlyConstants?: boolean; allowAdd?: boolean; };