import { SimpleChanges } from '@angular/core'; import { ToastrService } from 'ngx-toastr'; import { CookieService } from 'ngx-cookie-service'; import { NgxSpinnerService } from 'ngx-spinner'; import { DatePipe } from '@angular/common'; import * as i0 from "@angular/core"; type ToastrType = 'success' | 'error' | 'info' | 'warning'; export declare const TOASTER_SUCCESS = "success"; export declare const TOASTER_ERROR = "error"; export declare const TOASTER_INFO = "info"; export declare const TOASTER_WARNING = "warning"; export declare const ERROR_MESSAGE = "Something went wrong"; export declare const STORAGE_ACCESS_TOKEN = "access_token"; export declare const STORAGE_REFRESH_TOKEN = "refresh_token"; export declare const STORAGE_CURRENT_USER = "current_user"; export declare const STORAGE_ROLE_TYPE = "role_type"; export declare const STORAGE_ROLES = "roles"; export declare const STORAGE_IS_CHANGED = "isChanged"; export declare let SITE_LOGIN_URL: string; export declare let SITE_IP: string; export declare class CommonService { private toastr; private date; private siteLoader; private cookieService; navigationURL: string; ngOnChanges(changes: SimpleChanges): string; constructor(toastr: ToastrService, date: DatePipe, siteLoader: NgxSpinnerService, cookieService: CookieService); showToastr(type: ToastrType, message: string): void; roles: any; auth(): boolean; startLoader(): void; stopLoader(): void; checkFileExtension(fileExtension: string, isSkipZip?: boolean): boolean; fileDownload(blob: any, fileName: any): void; dateTransform(date: any, format?: string): string | null; setStorage(key: string, value: string): void; getStorage(key: string): string | null; clearAllStorage(): void; setSession(token: string): void; getSession(): string; clearSession(): void; isSessionExpired(): boolean; isLoggedIn(): boolean; patternValidation(inputMessage: string | null): string | null; patternValidationView(inputMessage: string | null): string | null; getPayloadSize(payload: any): number; isPayloadValid(payload: any, maxSizeMB?: number): boolean; /** Conversion payload */ safeBase64Decode(encodedStr: string): string; safeBase64Encode(str: string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export {};