import { Exception } from './exception'; /** * A simple interface which matches a function * which accepts an input and an optional map of * options for the converter and returns a value of * another type. */ export interface Converter { (arg: T): R; } export declare class EncodingException extends Exception { constructor(message: string); } export declare function composeConverters(fst: Converter, snd: Converter): Converter; export declare function chainConverters(...converters: Converter[]): Converter; export declare function identityConverter(arg: T): T; export declare function toStringConverter(arg: any): string;