import { Observable } from 'rxjs'; import { AttemptLoginMutation } from '../../common/generated-types'; import { DataService } from '../../data/providers/data.service'; import { ServerConfigService } from '../../data/server-config'; import { LocalStorageService } from '../local-storage/local-storage.service'; import { PermissionsService } from '../permissions/permissions.service'; import { AlertsService } from '../alerts/alerts.service'; import * as i0 from "@angular/core"; /** * This service handles logic relating to authentication of the current user. */ export declare class AuthService { private localStorageService; private dataService; private serverConfigService; private permissionsService; private alertService; constructor(localStorageService: LocalStorageService, dataService: DataService, serverConfigService: ServerConfigService, permissionsService: PermissionsService, alertService: AlertsService); /** * Attempts to log in via the REST login endpoint and updates the app * state on success. */ logIn(username: string, password: string, rememberMe: boolean): Observable; /** * Update the user status to being logged out. */ logOut(): Observable; /** * Checks the app state to see if the user is already logged in, * and if not, attempts to validate any auth token found. */ checkAuthenticatedStatus(): Observable; /** * Checks for an auth token and if found, attempts to validate * that token against the API. */ validateAuthToken(): Observable; private getActiveChannel; private setChannelToken; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }