export interface ISerializer { id: string; encode(data: TResult, options?: any): TInput; decode(data: TInput, options?: any): TResult; compare(source: TResult, target: TInput, options?: any): boolean; }