import { HttpClient } from '@angular/common/http'; import { BehaviorSubject, Observable } from 'rxjs'; import { Moneda, Rubro, TasaCambio, Idioma, Proceso, RequestPdf } from 'ng-pli-util'; import { TasaCambioService } from './tasa.cambio.service'; import * as i0 from "@angular/core"; export declare class CommonService { private environment; private httpClient; private tasaCambioService; private headerJson; /** Notify when the currencies info change */ currencyChanged: BehaviorSubject; /** List of currency */ private lCurrency; /** Notify when the categories info change */ categoryChanged: BehaviorSubject; /** List of currency */ private lCategory; /** Notify when the exchange rate info change */ exchangeRateChanged: BehaviorSubject; /** List of exchange rate */ private lExchangeRate; /** Notify when the idioma has changed */ languageChanged: BehaviorSubject; /** List of exchange rate */ private lLanguage; /** Notify when the process info change */ processChanged: BehaviorSubject; /** List of process */ private lProcess; constructor(environment: any, httpClient: HttpClient, tasaCambioService: TasaCambioService); /** It has an observable to notify if the language is changed */ onLanguageChanged(): Observable; /** It has an observable to notify if the cateogry is changed */ onCurrencyChanged(): Observable; /** It has an observable to notify if the category is changed */ onCategoryChanged(): Observable; /** It has an observable to notify if the exchange rate is changed */ onExchangeRateChanged(): Observable; /** It has an observable to notify if the list of process is changed */ onProcessChanged(): Observable; /** * Search the info of the variables, first try to search in the local storage, * if not find info, get the info from the services */ initValues(): void; /** * Remove all variables of the local storage */ reloadValues(): void; /** Search list of currencies */ getLanguages(): void; /** Search list of currencies */ getCurrencies(): void; /** Search list of categories */ getCategories(): void; /** Search list of exchange rates */ getExchangeRate(date: string): void; /** Search list of exchange rates */ getProcess(): void; setLCurrencies(lCurrency: Moneda[]): void; setLCategory(lCategory: Rubro[]): void; setLLanguage(lLanguage: Idioma[]): void; setLExchangeRate(lExchangeRate: TasaCambio[]): void; setLProcess(lProcess: Proceso[]): void; searchLCurrency(): void; searchLLanguage(): void; searchLCategory(): void; searchLExchangeRate(): void; searchLProcess(): void; /** * It returns * @param html */ getBase64Pdf(requestPdf: RequestPdf): Observable; /** * It returns a pdf * @param lPdfRequest */ getBase64PdfList(lPdfRequest: RequestPdf[]): Observable; /** * It returns * @param html */ getBase64PdfByUrl(urlFile: string): Observable; /** * It returns * @param urlFile */ getBase64ImageByUrl(urlFile: string): Observable; /** Get the actual date */ getActualDate(): Observable; /** Get the actual date */ validateCloseApplicationProcess(promCodigo: number, appStateId: number, cnfIniStateId?: number): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }