spot-sdk-ts
Version:
TypeScript bindings based on protobufs (proto3) provided by Boston Dynamics
38 lines • 1.67 kB
TypeScript
import _m0 from "protobufjs/minimal";
export declare const protobufPackage = "bosdyn.api";
/**
* Represents a chunk of (possibly serialized) data.
* Chunks will be concatenated together to produce a datagram.
* This is to avoid size limit restrictions in grpc implementations.
*/
export interface DataChunk {
/** The total size in bytes of the datagram that this chunk is a part of. */
totalSize: number;
/** Bytes in this data chunk. Bytes are sent sequentially. */
data: Uint8Array;
}
export declare const DataChunk: {
encode(message: DataChunk, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): DataChunk;
fromJSON(object: any): DataChunk;
toJSON(message: DataChunk): unknown;
fromPartial<I extends {
totalSize?: number | undefined;
data?: Uint8Array | undefined;
} & {
totalSize?: number | undefined;
data?: Uint8Array | undefined;
} & { [K in Exclude<keyof I, keyof DataChunk>]: never; }>(object: I): DataChunk;
};
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
[K in keyof T]?: DeepPartial<T[K]>;
} : Partial<T>;
declare type KeysOfUnion<T> = T extends T ? keyof T : never;
export declare type Exact<P, I extends P> = P extends Builtin ? P : P & {
[K in keyof P]: Exact<P[K], I[K]>;
} & {
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
};
export {};
//# sourceMappingURL=data_chunk.d.ts.map