@aws-lambda-powertools/kafka
Version:
Utility to easily handle message deserialization and parsing of Kafka events in AWS Lambda functions
12 lines • 639 B
TypeScript
import type { ProtobufMessage, SchemaMetadata } from '../types/types.js';
/**
* Deserialize a Protobuf message from a base64-encoded string.
*
* @template T - The type of the deserialized message object.
*
* @param data - The base64-encoded string representing the Protobuf binary data.
* @param messageType - The Protobuf message type definition - see {@link Message | `Message`} from {@link https://www.npmjs.com/package/protobufjs | `protobufjs`}.
*/
declare const deserialize: <T>(data: string, messageType: ProtobufMessage<T>, schemaMetadata: SchemaMetadata) => T;
export { deserialize };
//# sourceMappingURL=protobuf.d.ts.map