declare type formatter = { parser: (str: string) => string; cleaner: (str: string) => string; }; declare function formatter(str: string, formatters: formatter[], format: boolean): string; export default formatter;