///
///
import type { BrokersFunction, ProducerRecord, RecordMetadata } from 'kafkajs';
import { KeyObject } from 'tls';
export type KafkaConnection = {
send: (record: ProducerRecord) => Promise;
encode: (payload: any) => Promise;
};
export type KafkaConnectionMap = Map;
export type KafkaConnectionCredentials = {
registry: string;
brokers: string[] | BrokersFunction;
ca?: string | Buffer | Array;
cert?: string | Buffer | Array;
key?: string | Buffer | Array;
};