import { ErrorHandler, OnDestroy } from '@angular/core'; import { Observable } from 'rxjs'; import { AuthConfig } from './auth-config'; import { AuthEvent } from './auth-event'; import { AuthService } from './auth.service'; import * as i0 from "@angular/core"; /** * Send authentication session events to your functions app api */ export declare class AuthEventPersistenceService implements OnDestroy { private config; private subscription; private saves$; constructor(authService: AuthService, errorHandler: ErrorHandler, config: AuthConfig); /** * Start listening to the events to send them to the api */ start(): void; /** * Send the event to the api. The default implementation is send event using the `navigator.sendBeacon` */ protected sendEvent(evt: AuthEvent): Observable; /** * Override this method if you need to modify the data sent to the api. * * Note: the the cookie containing all the `ClientPrincipal` fields will be available also to the api function * */ protected prepareEventPayload(evt: AuthEvent): any; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }