import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; //#region src/energy_device/graphql_api.d.ts declare const protobufPackage = "tesla.proto.energy_device.v1"; declare enum GraphQLQueryFormat { GRAPH_QL_QUERY_FORMAT_INVALID = 0, GRAPH_QL_QUERY_FORMAT_RAW = 1, GRAPH_QL_QUERY_FORMAT_SIGNED_SHA256_ECDSA_ASN1 = 2, UNRECOGNIZED = -1 } declare function graphQLQueryFormatFromJSON(object: any): GraphQLQueryFormat; declare function graphQLQueryFormatToJSON(object: GraphQLQueryFormat): string; declare enum GraphQLStatus { GRAPH_QL_STATUS_INVALID = 0, GRAPH_QL_STATUS_SUCCESS = 1, GRAPH_QL_STATUS_ERROR_PARTIAL = 2, GRAPH_QL_STATUS_ERROR_FULL = 3, UNRECOGNIZED = -1 } declare function graphQLStatusFromJSON(object: any): GraphQLStatus; declare function graphQLStatusToJSON(object: GraphQLStatus): string; declare enum GraphQLErrorCode { GRAPH_QL_ERROR_CODE_INVALID = 0, GRAPH_QL_ERROR_CODE_FIELD_NOT_FOUND = 1, GRAPH_QL_ERROR_CODE_UNAUTHORIZED = 2, GRAPH_QL_ERROR_CODE_RESOLVER_PROCESS_UNRESPONSIVE = 3, GRAPH_QL_ERROR_CODE_RESPONSE_TOO_BIG = 4, UNRECOGNIZED = -1 } declare function graphQLErrorCodeFromJSON(object: any): GraphQLErrorCode; declare function graphQLErrorCodeToJSON(object: GraphQLErrorCode): string; interface SignedGraphQLQuery { version: number; query: Uint8Array; } interface GraphQLError { path: string[]; code: GraphQLErrorCode; message: string; } interface GraphQLAPIQueryRequest { format: GraphQLQueryFormat; query: Uint8Array; signature: Uint8Array; variablesJson: string | undefined; } interface GraphQLAPIQueryResponse { status: GraphQLStatus; data: string; errors: GraphQLError[]; } interface GraphQLMessages { queryRequest?: GraphQLAPIQueryRequest | undefined; queryResponse?: GraphQLAPIQueryResponse | undefined; } declare const SignedGraphQLQuery: MessageFns; declare const GraphQLError: MessageFns; declare const GraphQLAPIQueryRequest: MessageFns; declare const GraphQLAPIQueryResponse: MessageFns; declare const GraphQLMessages: 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, GraphQLAPIQueryRequest, GraphQLAPIQueryResponse, GraphQLError, GraphQLErrorCode, GraphQLMessages, GraphQLQueryFormat, GraphQLStatus, MessageFns, SignedGraphQLQuery, graphQLErrorCodeFromJSON, graphQLErrorCodeToJSON, graphQLQueryFormatFromJSON, graphQLQueryFormatToJSON, graphQLStatusFromJSON, graphQLStatusToJSON, protobufPackage };