import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; //#region src/command/managed_charging.d.ts declare const protobufPackage = "ManagedCharging"; /** * UPSTREAM-SOURCE: teslamotors/vehicle-command * UPSTREAM-PATH: pkg/protocol/protobuf/managed_charging.proto * UPSTREAM-COMMIT: see upstream.json * This file = upstream base + Teslemetry extensions marked TESLEMETRY-EXT. */ /** * The reasons why the site controller may recommend no charge. * The site controller will only return the highest priority reason to the vehicle. */ declare enum ChargeOnSolarNoChargeReason { CHARGE_ON_SOLAR_NO_CHARGE_REASON_INVALID = 0, /** CHARGE_ON_SOLAR_NO_CHARGE_REASON_POWERWALL_CHARGE_PRIORITY - The Powerwall is being prioritized over the vehicle to charge. */ CHARGE_ON_SOLAR_NO_CHARGE_REASON_POWERWALL_CHARGE_PRIORITY = 1, /** CHARGE_ON_SOLAR_NO_CHARGE_REASON_INSUFFICIENT_SOLAR - There is not enough solar for the vehicle to charge effectively. */ CHARGE_ON_SOLAR_NO_CHARGE_REASON_INSUFFICIENT_SOLAR = 2, /** * CHARGE_ON_SOLAR_NO_CHARGE_REASON_GRID_EXPORT_PRIORITY - The site controller is prioritizing export to the grid. This can * happen when the site controller is in autonomous mode and it is * most economical to export excess solar to the grid, or during a * virtual power plant event. */ CHARGE_ON_SOLAR_NO_CHARGE_REASON_GRID_EXPORT_PRIORITY = 3, /** CHARGE_ON_SOLAR_NO_CHARGE_REASON_ALTERNATE_VEHICLE_CHARGE_PRIORITY - Another vehicle is charging on solar at this location and has priority. */ CHARGE_ON_SOLAR_NO_CHARGE_REASON_ALTERNATE_VEHICLE_CHARGE_PRIORITY = 4, UNRECOGNIZED = -1 } declare function chargeOnSolarNoChargeReasonFromJSON(object: any): ChargeOnSolarNoChargeReason; declare function chargeOnSolarNoChargeReasonToJSON(object: ChargeOnSolarNoChargeReason): string; declare enum ErrorCode { ERROR_CODE_INVALID = 0, ERROR_CODE_FEATURE_NOT_SUPPORTED = 1, ERROR_CODE_INTERNAL = 2, UNRECOGNIZED = -1 } declare function errorCodeFromJSON(object: any): ErrorCode; declare function errorCodeToJSON(object: ErrorCode): string; /** ===== TESLEMETRY-EXT BEGIN ===== */ interface ChargeOnSolarLimits { maxExcessSolarPowerW: number; } interface ChargeOnSolarNoChargeRecommended { reason: ChargeOnSolarNoChargeReason; } interface ChargeOnSolarResponse { solarLimits: ChargeOnSolarLimits | undefined; noChargeRecommended: ChargeOnSolarNoChargeRecommended | undefined; } interface ErrorResponse { errorCode: ErrorCode; } interface SessionConfigs { pollIntervalMs: number | undefined; } interface ManageVehicleChargingResponse { sessionConfigs: SessionConfigs | undefined; chargeOnSolar: ChargeOnSolarResponse | undefined; } interface ManagedChargingAction { errorResponse: ErrorResponse | undefined; manageVehicleChargingResponse: ManageVehicleChargingResponse | undefined; } declare const ChargeOnSolarLimits: MessageFns; declare const ChargeOnSolarNoChargeRecommended: MessageFns; declare const ChargeOnSolarResponse: MessageFns; declare const ErrorResponse: MessageFns; declare const SessionConfigs: MessageFns; declare const ManageVehicleChargingResponse: MessageFns; declare const ManagedChargingAction: 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 { ChargeOnSolarLimits, ChargeOnSolarNoChargeReason, ChargeOnSolarNoChargeRecommended, ChargeOnSolarResponse, DeepPartial, ErrorCode, ErrorResponse, Exact, ManageVehicleChargingResponse, ManagedChargingAction, MessageFns, SessionConfigs, chargeOnSolarNoChargeReasonFromJSON, chargeOnSolarNoChargeReasonToJSON, errorCodeFromJSON, errorCodeToJSON, protobufPackage };