import { VtsSafeAny } from '@ui-vts-kit/ng-vts/core/types'; import { Observable } from 'rxjs'; import { DateLocale, VtsDateFormatInterface, VtsI18nInterface } from './vts-i18n.interface'; import * as i0 from "@angular/core"; export declare class VtsI18nService { private _locale; private _change; private dateLocale; private dateFormat; get localeChange(): Observable; constructor(locale: VtsI18nInterface, dateLocale: DateLocale, dateFormat: VtsDateFormatInterface); translate(path: string, data?: VtsSafeAny): string; /** * Set/Change current locale globally throughout the WHOLE application * NOTE: If called at runtime, rendered interface may not change along with the locale change, * because this do not trigger another render schedule. * * @param locale The translating letters */ setLocale(locale: VtsI18nInterface): void; getLocale(): VtsI18nInterface; getLocaleId(): string; setDateLocale(dateLocale: DateLocale): void; getDateLocale(): DateLocale; setDateFormat(dateFormat: VtsDateFormatInterface): void; getDateFormat(): VtsDateFormatInterface; /** * Get locale data * @param path dot paths for finding exist value from locale data, eg. "a.b.c" * @param defaultValue default value if the result is not "truthy" */ getLocaleData(path: string, defaultValue?: VtsSafeAny): VtsSafeAny; private _getObjectPath; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }