import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; //#region src/command/errors.d.ts declare const protobufPackage = "Errors"; /** * UPSTREAM-SOURCE: teslamotors/vehicle-command * UPSTREAM-PATH: pkg/protocol/protobuf/errors.proto * UPSTREAM-COMMIT: see upstream.json * This file = upstream base + Teslemetry extensions marked TESLEMETRY-EXT. */ declare enum GenericErrorE { GENERICERROR_NONE = 0, GENERICERROR_UNKNOWN = 1, GENERICERROR_CLOSURES_OPEN = 2, GENERICERROR_ALREADY_ON = 3, GENERICERROR_DISABLED_FOR_USER_COMMAND = 4, GENERICERROR_VEHICLE_NOT_IN_PARK = 5, GENERICERROR_UNAUTHORIZED = 6, GENERICERROR_NOT_ALLOWED_OVER_TRANSPORT = 7, /** GENERICERROR_KEY_NOT_FOUND - TESLEMETRY-EXT UNCONFIRMED: not yet confirmed on a live vehicle */ GENERICERROR_KEY_NOT_FOUND = 8, /** GENERICERROR_NOT_SUPPORTED - TESLEMETRY-EXT UNCONFIRMED: not yet confirmed on a live vehicle */ GENERICERROR_NOT_SUPPORTED = 9, UNRECOGNIZED = -1 } declare function genericErrorEFromJSON(object: any): GenericErrorE; declare function genericErrorEToJSON(object: GenericErrorE): string; /** * ===== TESLEMETRY-EXT BEGIN ===== * UNCONFIRMED: not yet confirmed on a live vehicle. */ interface KeyNotFoundContext { publicKey?: Uint8Array | undefined; slot?: number | undefined; } interface NominalError { genericError: GenericErrorE; /** TESLEMETRY-EXT UNCONFIRMED: not yet confirmed on a live vehicle */ keyNotFound?: KeyNotFoundContext | undefined; } declare const KeyNotFoundContext: MessageFns; declare const NominalError: 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 { DeepPartial, Exact, GenericErrorE, KeyNotFoundContext, MessageFns, NominalError, genericErrorEFromJSON, genericErrorEToJSON, protobufPackage };