1 | import { OutgoingEvent, OutgoingRequest, OutgoingResponse } from './packet.interface';
|
2 | export interface Serializer<TInput = any, TOutput = any> {
|
3 | serialize(value: TInput): TOutput;
|
4 | }
|
5 | export declare type ProducerSerializer = Serializer<OutgoingEvent | OutgoingRequest, any>;
|
6 | export declare type ConsumerSerializer = Serializer<OutgoingResponse, any>;
|