import { PipeTransform } from '@angular/core'; import { Locales } from '@ha8rt/modal'; import { Observable } from 'rxjs'; import { HttpService } from '../service/service'; export interface ITranslation { [key: string]: string; } export interface IGetTranslation { en: string; hu?: string; } export declare type localeType = keyof typeof Locales; export declare class TranslatePipe implements PipeTransform { private static changedSubject; static changed: Observable; private static translations; private static locale; private static defaultLocale; private static allowedLocaleKeys; static getService(service: HttpService, loginPage: boolean | undefined, callback: (translations: T[] | null) => void): void; static getTranslations(): ITranslation; static getLocale(): Locales; static getDefaultLocale(): Locales; static getAllowedLocaleKeys(): Array; static setTranslation(key: string, value: string): typeof TranslatePipe; static setTranslations(translations: ITranslation): typeof TranslatePipe; static setLocale(locale: Locales): typeof TranslatePipe; static setDefaultLocale(locale: Locales): typeof TranslatePipe; static setAllowedLocaleKeys(keys: Array): typeof TranslatePipe; static getLocaleKey(locale: Locales): localeType; static current(): localeType; static default(): localeType; static isAllowedLocale(locale: Locales): boolean; constructor(); transform(value: any): any; }