import { OutgoingEvent, OutgoingRequest, OutgoingResponse } from './packet.interface'; /** * @publicApi */ export interface Serializer { serialize(value: TInput, options?: Record): TOutput; } export type ProducerSerializer = Serializer; export type ConsumerSerializer = Serializer;