declare type SubstFn = (name: string, format?: string) => string; declare type TemplateFn = (subst: SubstFn) => string | undefined; declare type ConvertFn = (value: any, format?: string) => string; export declare function compile(template: string): TemplateFn; export declare class Formatter { _converters: ConvertFn[]; constructor(converters?: ConvertFn[]); convert(value: any, pattern?: string): string; format(msg: string, ...args: any[]): string | undefined; compile(msg: string): (...args: any[]) => string | undefined; } export declare function format(msg: string, ...args: any[]): string | undefined; export declare function convert(value: any, pattern: string): string | undefined; export {};