import { HttpClient } from '@angular/common/http'; import { BehaviorSubject, Observable, Subject } from 'rxjs'; import { Router } from '@angular/router'; import { ConfService } from './conf.service'; import { Locale } from '../classes/locale'; import { CustomThemeService } from './custom-theme.service'; import * as i0 from "@angular/core"; export declare class LanguageService { protected http: HttpClient; protected _router: Router; protected confService: ConfService; protected _customTheme: CustomThemeService; lastLocale: string; localeChange: Subject; defaultLocale: string; defaultLocales: { en: string; ar: string; }; protected availableLocales: BehaviorSubject; protected language: BehaviorSubject; constructor(http: HttpClient, _router: Router, confService: ConfService, _customTheme: CustomThemeService); setLocale(locale: string): void; getLanguage(): Observable; readUrl(): void; getAvailableLocales(): Observable; is_available(locale: any): Observable; protected getLocalesFromApi(): void; protected getAvailableLocalesFromApi(): void; /** * Returns void * @param langCode languageCode return from getAvailableLocales * * @returns void * * @method * check if the languageCode is en_US so lang attribute in document will be lang="en" * check if the languageCode is ar_EG so lang attribute in document will be lang="ar" * lang attribute in the HTML will be lang="ar" * */ protected changeLangAttrBasedOnLanguage(langCode: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }