import * as i0 from '@angular/core'; import { InjectionToken } from '@angular/core'; import { CustomFormatter, MessageFunction } from '@messageformat/core'; import { TranslateCompiler } from '@ngx-translate/core'; declare const MESSAGE_FORMAT_CONFIG: InjectionToken; interface MessageFormatConfig { biDiSupport?: boolean; formatters?: { [key: string]: CustomFormatter; }; strictNumberSign?: boolean; currency?: string; strictPluralKeys?: boolean; throwOnError?: boolean; fallbackPrefix?: string; } declare const defaultConfig: MessageFormatConfig; type CompilationResult = MessageFunction<"string"> | string; /** * This compiler expects ICU syntax and compiles the expressions with messageformat.js */ declare class TranslateMessageFormatCompiler extends TranslateCompiler { private mfCache; private messageFormatOptions; private throwOnError; private fallbackPrefix?; constructor(config?: MessageFormatConfig); compile>(value: string, lang: string): Result; compileTranslations(translations: any, lang: string): any; private getMessageFormatInstance; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class TranslateMessageFormatDebugCompiler extends TranslateMessageFormatCompiler { compile>(value: string, lang: string): Result; compileTranslations(value: any, lang: string): any; private wrap; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { MESSAGE_FORMAT_CONFIG, TranslateMessageFormatCompiler, TranslateMessageFormatDebugCompiler, defaultConfig }; export type { CompilationResult, MessageFormatConfig };