import { Injector, OnInit } from "@angular/core"; import { UserSettings } from "@farris/devkit"; import { TextComponent } from '@farris/ui-text'; export declare class FarrisTextLocalizationDirective implements OnInit { private injector; private userSettings; private componentRef; localization: boolean; constructor(injector: Injector, userSettings: UserSettings, componentRef: TextComponent); ngOnInit(): void; private transform; private transformValue; /** * 转换日期 * @param value value */ private transformDate; /** * 转换日期时间 * @param value value * todo: 目前无法定义日期时间格式 */ private transformDateTime; /** * 转换数字 * @param value value */ private transformNumber; /** * 转换日期格式规则为moment的format规则 * @param format format */ private parseDateFormat; /** * 转换时间格式规则为moment的format规则 * @param format format */ private parseTimeFormat; /** * 构造bignumber数字格式化选项 */ private buildNumberFormat; private readonly numberFormat; }