import { FileStore } from '../../common'; import { Base, Id, KvConfig } from '../../utils'; /** 平台所需要的 MQTT 连接信息 */ export declare class MqttConnection extends Base { connectionTimeoutSeconds: number; host: string; maxInflight: number; maxReconnectDelayMillis: number; password: string; port: number; username: string; constructor(props?: Partial); } /** 网关信息 */ export declare class UfGateway extends Base { name: string; apiEndpoint: string; endpoint: string; code: string; description: string; disabled: boolean; connected: boolean; heartbeatAt: string; offlineAt: string; credentials: { credentialsId: string; credentialsType: 'ACCESS_TOKEN' | 'X509_CERTIFICATE'; credentialsValue: string; deviceCode: string; deviceId: string; }; attrs?: KvConfig[]; supportedRpcMethod?: string[]; /** 判断是否为云网关 */ get isCloudGateway(): boolean; get asFileStore(): FileStore; constructor(props?: Partial); } export interface UpdateGatewayFormType { apiEndpoint?: string; desc?: string; disabled?: boolean; name?: string; tenantId?: Id; } /** 网关验证信息 */ export declare class GatewayCredentials extends Base { credentialsId: Id; credentialsType: 'ACCESS_TOKEN' | 'X509_CERTIFICATE'; credentialsValue: string; deviceCode: string; entityId: string; constructor(props?: Partial); }