1 | import { IncomingEvent, IncomingRequest, IncomingResponse } from './packet.interface';
|
2 | export interface Deserializer<TInput = any, TOutput = any> {
|
3 | deserialize(value: TInput, options?: Record<string, any>): TOutput;
|
4 | }
|
5 | export declare type ProducerDeserializer = Deserializer<any, IncomingResponse>;
|
6 | export declare type ConsumerDeserializer = Deserializer<any, IncomingRequest | IncomingEvent>;
|