import { BehaviorSubject } from 'rxjs'; import { HttpClient } from '@angular/common/http'; import { UserService } from '../services/user.service'; import { CartService } from '../services/cart.service'; import { CustomerService } from '../services/customer.service'; import { LookupService } from '../services/lookup.service'; import { LoggingService } from '../services/logging.service'; import { IDormantProperties } from './modal/common'; import { Router } from '@angular/router'; /** * This class provides the Shared service with global methods to access throught out the application. */ export declare class SharedService { router: Router; http: HttpClient; userService: UserService; cartService: CartService; customerService: CustomerService; lookupService: LookupService; loggingService: LoggingService; private COMPONENT_NAME; spinnerStatus: BehaviorSubject; showSidebarStatus: BehaviorSubject; showMincartStatus: BehaviorSubject; storeId: BehaviorSubject; creditChoice: BehaviorSubject; errorMessage: BehaviorSubject; clearAllStatus: BehaviorSubject; coverageStatus: BehaviorSubject; tradeInValidate: any; requestParams: any; dormantProperties: any; notificationModel: any; surveyEnabled: boolean; invalidAdress: boolean; isExchangeEipPackage: boolean; creditIssueItems: any; isShippingCreditable: boolean; /** * Creates a new UserService with the injected Http. * @param {HttpClient} http - The injected Http. * @constructor */ constructor(router: Router, http: HttpClient, userService: UserService, cartService: CartService, customerService: CustomerService, lookupService: LookupService, loggingService: LoggingService); readonly rateplanTypes: any[]; readonly estimateEmailType: any[]; showSpinner(value: boolean): void; showSidebar(value: boolean): void; showMinicart(value: boolean): void; updateStoreId(value: number): void; updateCreditChoice(value: string): void; updateErrorMessage(value: any): void; showErrorMessage(errors: any, errorKey: boolean): void; showClearAll(value: boolean): void; showCoverage(value: boolean): void; setTradeInValidate(value: any): void; getTradeInValidate(): any; updateTradeInList(val: any): void; getAllPromoAndQuoteLists(): any; getDormantProperties(): IDormantProperties; /**Sets the master gsm rateplans */ setDormantProperties(properties: IDormantProperties): void; setAppDefault(): void; clearSessionStorage(clearUser: boolean): void; clearLocalStorage(): void; initializeCatalog(): void; /** updates the inventory status for products */ addOrderNotes(storeId: number, orderId: number, requestParams: any): void; addLogging(componentName: string, methodName: string, comments: string): void; getErrorKey(errors: any): string; getErrorMessage(errors: any): string; clearAllSelected(arrayToDoClearOperation: any): any; keypresshandler(event: any): void; pasteHandler(event: any): void; validate(dateType: string, date: any): number; monthOfExpiration(exprationDate: any): number; checkFormat(phoneNumber: string): boolean; fieldsOfDateOfBirth(date: any, pos1: number, pos2: any): number; showErrorDownPaymentAdjusted(isDownPaymentAdjusted: boolean): string; /** * call generate token service */ generateMemo(storeId: any, cartSummary: any, trackingNumber: any, memoType: string): void; /** *@param storeId * @param returnCartSummary * @param deviceSku * @param serialNumber * @param reason * @param creditAmount */ callGenerateMemo(storeId: number, name: string, imei: string, reason: string, creditAmount: number, accountNumber: any, returnCartSummary: any, trackingNumber: string, memoType: string): void; orderAddNote(storeId: any, returnCartSummary: any, name: any, imei: any, reason: any, trackingNumber: any): void; isSurveyEnabledForCurrentChannel(): boolean; showSurveyModal(modal: any, storeId: number, userId: number): void; initializeDevices(): void; }