@oxidezap/whatsapp-rust-bridge 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ export { proto } from "./index.js";
@@ -0,0 +1,8 @@
1
+ export declare function encodeProto(typeName: string, obj: unknown): Uint8Array;
2
+ export declare function decodeProto(typeName: string, data: Uint8Array): unknown;
3
+ /**
4
+ * Decode concatenated protobuf payloads with one reader and no per-entry
5
+ * `Uint8Array.subarray()`. `offsets` must contain N + 1 monotonic positions,
6
+ * starting at zero and ending at `data.length`.
7
+ */
8
+ export declare function decodeProtoBatch(typeName: string, data: Uint8Array, offsets: Uint32Array): unknown[];