import { ReactNode } from 'react'; import { SelectItem } from './SelectItem'; /** * 盒子类型 * 0:FBox * 1:FBox-Mini * 2:FBox-Lite * 3:FBox-Vpn * 4:FBox-Lite_T * 5:FLink * 6:FL3 * 7:FBox-Lite-New * 8:HMI */ export declare const boxTypeItems: SelectItem[]; export declare const boxTypeFilterItems: SelectItem[]; export declare const workModeItems: SelectItem[]; export declare const baudRateItems: SelectItem[]; export declare const dataBitItems: SelectItem[]; export declare const stopBitItems: SelectItem[]; export declare const parityItems: SelectItem[]; export declare const plcTypeItems: SelectItem[]; export declare const portNoItems: SelectItem[]; export declare const deviceModeItems: SelectItem[]; export declare const variableDataType: { [key: number]: { text: string; value: number; width: number; }; }; /** * 数据类型 * 0: 位 * 1: 16位无符号 * 2: 16位有符号 * 3: 16位BCD * 4: 16位16进制 * 5: 16位二进制 * 11: 32位无符号 * 12: 32位有符号 * 13: 32位BCD * 14: 32位16进制 * 15: 32位二进制 * 16: 单精度浮点 * 30: 字符串 */ export declare const dataTypeItems: SelectItem[]; /** * 数据类型的范围 */ export declare const dataTypeRange: { [key: number]: { maxValueLimit: number; minValueLimit: number; maxBitNum: number; }; }; export declare const dataValidateRegex: { 4: RegExp; 14: RegExp; 5: RegExp; 15: RegExp; }; /** * 支持浮点数的数据类型 */ export declare const decimalDataType: number[]; /** * 位数据类型 */ export declare const bitDataType: number[]; /** * 16进制数据类型 */ export declare const hexDataType: number[]; /** * 二进制数据类型 */ export declare const binaryDataType: number[]; /** * BCD码数据类型 */ export declare const bcdDataType: number[]; /** * 不支持单位的数据类型 */ export declare const noneUnitDataType: number[]; /** 不支持小数位数的数据类型 */ export declare const noneDigitsDataType: number[]; /** * 支持死区的数据类型 */ export declare const deadZoneDataType: number[]; /** * 支持字符串的数据类型 */ export declare const stringDataType: number[]; /** * 支持按位索引的数据类型 */ export declare const bitIndexDataType: number[]; /** * 支持边缘换算的数据类型 */ export declare const transformDataType: number[]; /** * 16位整数高低字节序 */ export declare const byteOrder16Items: SelectItem[]; /** * 32位整数高低字节序 */ export declare const byteOrder32Items: SelectItem[]; /** * 32位浮点数高低字节序 */ export declare const byteOrderFloatItems: SelectItem[]; export declare const mqttVersionItems: SelectItem[]; export declare const stringDataEncodingItems: SelectItem[]; export declare const mqttPubModeItems: SelectItem[]; export declare const mqttIntervalUnitItems: SelectItem[]; export declare const mqttWebSocketConns: string[]; export declare const mqttSecureConns: string[]; export declare const mqttConnectionTypeItems: SelectItem[]; export declare const mqttStoreTypeItems: SelectItem[]; export declare const mqttValueType: { integer: { value: string; text: string; }; unsigned_integer: { value: string; text: string; }; float: { value: string; text: string; }; double: { value: string; text: string; }; long: { value: string; text: string; }; string: { value: string; text: string; }; boolean: { value: string; text: string; }; array: { value: string; text: string; }; object: { value: string; text: string; }; bcd_code: { value: string; text: string; }; hex_code: { value: string; text: string; }; bin_code: { value: string; text: string; }; }; export declare const mqttObjectTypes: string[]; export declare const mqttValueTypeItems: SelectItem[]; /** * 0: 位 * 1: 16位无符号 * 2: 16位有符号 * 3: 16位BCD * 4: 16位16进制 * 5: 16位二进制 * 11: 32位无符号 * 12: 32位有符号 * 13: 32位BCD * 14: 32位16进制 * 15: 32位二进制 * 16: 单精度浮点 * 30: 字符串 * 0-30: 监控点变量类型对应MQTT变量类型 * 990-999:内置变量类型对应MQTT变量类型 */ export declare const mqttVariableType: { [key: number]: SelectItem[]; }; /** * MQTT数据类型默认值 */ export declare const mqttVariableDefaultType: { 0: { value: string; text: string; }; 1: { value: string; text: string; }; 2: { value: string; text: string; }; 11: { value: string; text: string; }; 12: { value: string; text: string; }; 3: { value: string; text: string; }; 13: { value: string; text: string; }; 16: { value: string; text: string; }; 4: { value: string; text: string; }; 14: { value: string; text: string; }; 5: { value: string; text: string; }; 15: { value: string; text: string; }; 30: { value: string; text: string; }; }; /** * 数据转发MQTT功能列表 */ export declare const mqttFunctionItems: SelectItem[]; export declare const mqttServerTypeItems: SelectItem[]; export declare const mqttApiVersionItems: SelectItem[]; export declare const timezoneItems: SelectItem[]; export declare const connectionModeItems: SelectItem[]; export declare const mqttConnectionTypes: { value: string; text: string; }[]; /** * 报警触发条件 * 0:不等于, 1:等于, 2:大于 3:大于等于 4:小于 5:小于等于 */ export declare const alarmConditionItems: SelectItem[]; /** * 报警条件关系运算符 * 0:None, 1:And 2:Or */ export declare const alarmCondMethodItems: SelectItem[]; /** * NTP授时服务器列表 */ export declare const ntpServerItems: SelectItem[]; /** * 设备默认导入方式 */ export declare const boxImportTypes: SelectItem[]; /** * 日志级别 */ export declare const logLevelItems: SelectItem[]; export declare const compressionItems: SelectItem[]; export declare const sysTimezoneItems: SelectItem[]; export declare function getMqttValueType(key: number): ReactNode[]; export declare function getOptions(items: SelectItem[]): ReactNode[];