export interface Encoder { encode(type: InputType): OutputType; } export type EncoderFct = (type: InputType) => OutputType;