/** * Google Protobuf v2/v3 binary wire codec — schema-aware serialization/deserialization. * Uses DeukPackStruct schema + plain JS object ↔ protobuf binary bytes. * Compatible with standard protobuf decoders/encoders (field_number tags, varint encoding, * LEN-prefixed sub-messages, packed repeated numerics, map as repeated MapEntry). */ import type { DeukPackStruct, SerializationOptions } from '../types/DeukPackTypes'; export declare function serializeProtoStruct(obj: Record, options: SerializationOptions & { interopRootStruct: DeukPackStruct; interopStructDefs?: Record; }): Uint8Array; export declare function deserializeProtoStruct(data: Uint8Array, options: SerializationOptions & { interopRootStruct: DeukPackStruct; interopStructDefs?: Record; }): Record; /** * Varint utility: ZigZag encode/decode for sint32/sint64. * DeukPack int32/int64 maps to protobuf int32/int64 (two's complement varint) by default. * Use ZigZag when interop-ing with .proto files that declare sint32/sint64. */ export declare const zigzag: { encode32: (n: number) => number; decode32: (n: number) => number; encode64: (n: bigint) => bigint; decode64: (n: bigint) => bigint; }; //# sourceMappingURL=protoInteropWireCodec.d.ts.map