import { Rssi } from "./networking.cjs"; import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; //#region src/energy_device/neurio_meter_api.d.ts declare const protobufPackage = "tesla.proto.energy_device.v1"; declare enum PowerType { POWER_TYPE_INVALID = 0, POWER_TYPE_AC_1_PHASE = 1, POWER_TYPE_AC_3_PHASE = 2, POWER_TYPE_DC = 3, UNRECOGNIZED = -1 } declare function powerTypeFromJSON(object: any): PowerType; declare function powerTypeToJSON(object: PowerType): string; declare enum ConnectorType { CONNECTOR_TYPE_INVALID = 0, CONNECTOR_TYPE_CCS1 = 1, CONNECTOR_TYPE_CCS2 = 2, CONNECTOR_TYPE_GB = 3, CONNECTOR_TYPE_NA = 4, CONNECTOR_TYPE_TYPE_2 = 5, CONNECTOR_TYPE_J1772 = 6, CONNECTOR_TYPE_INDISTINGUISHABLE_DUAL_HANDLE = 7, CONNECTOR_TYPE_UNKNOWN = 8, CONNECTOR_TYPE_MCS = 9, UNRECOGNIZED = -1 } declare function connectorTypeFromJSON(object: any): ConnectorType; declare function connectorTypeToJSON(object: ConnectorType): string; declare enum NeurioConnectionStatus { NEURIO_CONNECTION_STATUS_INVALID = 0, NEURIO_CONNECTION_STATUS_NO_COMMS = 1, NEURIO_CONNECTION_STATUS_PAIRING = 2, NEURIO_CONNECTION_STATUS_CONNECTED = 3, NEURIO_CONNECTION_STATUS_CONFIG_CHANGE_UNDERWAY = 4, UNRECOGNIZED = -1 } declare function neurioConnectionStatusFromJSON(object: any): NeurioConnectionStatus; declare function neurioConnectionStatusToJSON(object: NeurioConnectionStatus): string; declare enum NeurioConnectionError { NEURIO_CONNECTION_ERROR_INVALID = 0, NEURIO_CONNECTION_ERROR_NONE = 1, NEURIO_CONNECTION_ERROR_UNKNOWN = 2, NEURIO_CONNECTION_ERROR_WIFI_AP = 3, NEURIO_CONNECTION_ERROR_PAIRING_COMMAND = 4, NEURIO_CONNECTION_ERROR_REBOOT_COMMAND = 5, UNRECOGNIZED = -1 } declare function neurioConnectionErrorFromJSON(object: any): NeurioConnectionError; declare function neurioConnectionErrorToJSON(object: NeurioConnectionError): string; declare enum NeurioCtType { NEURIO_CT_TYPE_INVALID = 0, NEURIO_CT_TYPE_MISSING = 1, NEURIO_CT_TYPE_200A = 2, NEURIO_CT_TYPE_800A = 3, NEURIO_CT_TYPE_UNIVERSAL = 4, UNRECOGNIZED = -1 } declare function neurioCtTypeFromJSON(object: any): NeurioCtType; declare function neurioCtTypeToJSON(object: NeurioCtType): string; declare enum NeurioCtConfigRequestStatus { NEURIO_CT_CONFIG_REQUEST_STATUS_INVALID = 0, NEURIO_CT_CONFIG_REQUEST_STATUS_SUCCESS = 1, NEURIO_CT_CONFIG_REQUEST_STATUS_FAILED_NETWORK = 2, NEURIO_CT_CONFIG_REQUEST_STATUS_FAILED_HTTP = 3, UNRECOGNIZED = -1 } declare function neurioCtConfigRequestStatusFromJSON(object: any): NeurioCtConfigRequestStatus; declare function neurioCtConfigRequestStatusToJSON(object: NeurioCtConfigRequestStatus): string; declare enum NeurioCompatibleMeterType { NEURIO_COMPATIBLE_METER_TYPE_INVALID = 0, NEURIO_COMPATIBLE_METER_TYPE_NEURIO = 1, NEURIO_COMPATIBLE_METER_TYPE_TRM = 2, UNRECOGNIZED = -1 } declare function neurioCompatibleMeterTypeFromJSON(object: any): NeurioCompatibleMeterType; declare function neurioCompatibleMeterTypeToJSON(object: NeurioCompatibleMeterType): string; declare enum MeterCTLocation { METER_CT_LOCATION_INVALID = 0, METER_CT_LOCATION_NONE = 1, METER_CT_LOCATION_SITE = 2, METER_CT_LOCATION_LOAD = 3, METER_CT_LOCATION_BATTERY = 4, METER_CT_LOCATION_SOLAR = 5, METER_CT_LOCATION_SOLAR_RGM = 6, METER_CT_LOCATION_CONDUCTOR = 7, UNRECOGNIZED = -1 } declare function meterCTLocationFromJSON(object: any): MeterCTLocation; declare function meterCTLocationToJSON(object: MeterCTLocation): string; interface NeurioCTConfig { location: MeterCTLocation; realPowerScaleFactor: number; } interface NeurioCTReading { realPowerW: number; scaledRealPowerW: number; currentAmps: number; } interface NeurioMeterReadings { ctReadings: NeurioCTReading[]; } interface NeurioMeterConnection { connectionStatus: NeurioConnectionStatus; connectionError: NeurioConnectionError; rssi: Rssi | undefined; firmwareVersion: string; meterReadings: NeurioMeterReadings | undefined; } interface NeurioMeterConfig { shortId: string; serial: string; ctConfig: NeurioCTConfig[]; meterType: NeurioCompatibleMeterType; } interface NeurioMeterInterface { config: NeurioMeterConfig | undefined; connection: NeurioMeterConnection | undefined; } interface NeurioMeterAPIAddMeterRequest { config: NeurioMeterConfig | undefined; } interface NeurioMeterAPIAddMeterResponse { config: NeurioMeterConfig | undefined; } interface NeurioMeterAPIRemoveMeterRequest { serial: string; } interface NeurioMeterAPIRemoveMeterResponse {} interface NeurioMeterAPIConfigureCtsRequest { serial: string; ctConfig: NeurioCTConfig[]; } interface NeurioMeterAPIConfigureCtsResponse { ctConfig: NeurioCTConfig[]; } interface NeurioMeterAPIDetectWiredRequest {} interface NeurioMeterAPIDetectWiredResponse {} interface NeurioMeterAPIGetNeurioCtTypeRequest { serial: string; } interface NeurioMeterAPIGetNeurioCtTypeResponse { serial: string; status: NeurioCtConfigRequestStatus; ct1Type: NeurioCtType; ct2Type: NeurioCtType; ct3Type: NeurioCtType; ct4Type: NeurioCtType; } interface NeurioMeterAPISetNeurioCtTypeRequest { serial: string; ct1Type: NeurioCtType; ct2Type: NeurioCtType; ct3Type: NeurioCtType; ct4Type: NeurioCtType; } interface NeurioMeterAPISetNeurioCtTypeResponse { serial: string; status: NeurioCtConfigRequestStatus; ct1Type: NeurioCtType; ct2Type: NeurioCtType; ct3Type: NeurioCtType; ct4Type: NeurioCtType; } interface NeurioMeterMessages { addMeterRequest?: NeurioMeterAPIAddMeterRequest | undefined; addMeterResponse?: NeurioMeterAPIAddMeterResponse | undefined; removeMeterRequest?: NeurioMeterAPIRemoveMeterRequest | undefined; removeMeterResponse?: NeurioMeterAPIRemoveMeterResponse | undefined; configureCtsRequest?: NeurioMeterAPIConfigureCtsRequest | undefined; configureCtsResponse?: NeurioMeterAPIConfigureCtsResponse | undefined; detectWiredRequest?: NeurioMeterAPIDetectWiredRequest | undefined; detectWiredResponse?: NeurioMeterAPIDetectWiredResponse | undefined; getNeurioCtTypeRequest?: NeurioMeterAPIGetNeurioCtTypeRequest | undefined; getNeurioCtTypeResponse?: NeurioMeterAPIGetNeurioCtTypeResponse | undefined; setNeurioCtTypeRequest?: NeurioMeterAPISetNeurioCtTypeRequest | undefined; setNeurioCtTypeResponse?: NeurioMeterAPISetNeurioCtTypeResponse | undefined; } declare const NeurioCTConfig: MessageFns; declare const NeurioCTReading: MessageFns; declare const NeurioMeterReadings: MessageFns; declare const NeurioMeterConnection: MessageFns; declare const NeurioMeterConfig: MessageFns; declare const NeurioMeterInterface: MessageFns; declare const NeurioMeterAPIAddMeterRequest: MessageFns; declare const NeurioMeterAPIAddMeterResponse: MessageFns; declare const NeurioMeterAPIRemoveMeterRequest: MessageFns; declare const NeurioMeterAPIRemoveMeterResponse: MessageFns; declare const NeurioMeterAPIConfigureCtsRequest: MessageFns; declare const NeurioMeterAPIConfigureCtsResponse: MessageFns; declare const NeurioMeterAPIDetectWiredRequest: MessageFns; declare const NeurioMeterAPIDetectWiredResponse: MessageFns; declare const NeurioMeterAPIGetNeurioCtTypeRequest: MessageFns; declare const NeurioMeterAPIGetNeurioCtTypeResponse: MessageFns; declare const NeurioMeterAPISetNeurioCtTypeRequest: MessageFns; declare const NeurioMeterAPISetNeurioCtTypeResponse: MessageFns; declare const NeurioMeterMessages: MessageFns; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; type DeepPartial = T extends Builtin ? T : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & { [K in Exclude>]: never; }; interface MessageFns { encode(message: T, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): T; fromJSON(object: any): T; toJSON(message: T): unknown; create, I>>(base?: I): T; fromPartial, I>>(object: I): T; } //#endregion export { ConnectorType, DeepPartial, Exact, MessageFns, MeterCTLocation, NeurioCTConfig, NeurioCTReading, NeurioCompatibleMeterType, NeurioConnectionError, NeurioConnectionStatus, NeurioCtConfigRequestStatus, NeurioCtType, NeurioMeterAPIAddMeterRequest, NeurioMeterAPIAddMeterResponse, NeurioMeterAPIConfigureCtsRequest, NeurioMeterAPIConfigureCtsResponse, NeurioMeterAPIDetectWiredRequest, NeurioMeterAPIDetectWiredResponse, NeurioMeterAPIGetNeurioCtTypeRequest, NeurioMeterAPIGetNeurioCtTypeResponse, NeurioMeterAPIRemoveMeterRequest, NeurioMeterAPIRemoveMeterResponse, NeurioMeterAPISetNeurioCtTypeRequest, NeurioMeterAPISetNeurioCtTypeResponse, NeurioMeterConfig, NeurioMeterConnection, NeurioMeterInterface, NeurioMeterMessages, NeurioMeterReadings, PowerType, connectorTypeFromJSON, connectorTypeToJSON, meterCTLocationFromJSON, meterCTLocationToJSON, neurioCompatibleMeterTypeFromJSON, neurioCompatibleMeterTypeToJSON, neurioConnectionErrorFromJSON, neurioConnectionErrorToJSON, neurioConnectionStatusFromJSON, neurioConnectionStatusToJSON, neurioCtConfigRequestStatusFromJSON, neurioCtConfigRequestStatusToJSON, neurioCtTypeFromJSON, neurioCtTypeToJSON, powerTypeFromJSON, powerTypeToJSON, protobufPackage };