import { ClassConstructor } from '../util' ; /**
 * A serializer that's use to serialize/deserialize objects as they leave and enter the application boundary.
 */ export interface Serializer { serialize < T extends object > ( obj ) : string ; deserialize < T extends object > ( val , classType ) : T ; toPlain < T extends object > ( obj ) : object ; toClass < T extends object > ( obj , classConstructor ) : T ; }