import { OnDestroy } from '@angular/core';
import { Subject } from 'rxjs';
import { AuthService } from '../auth.service';
import { EventsService } from 'angular-simple-oidc/events';
export declare class TokenExpirationDaemonService implements OnDestroy {
    protected readonly auth: AuthService;
    protected readonly events: EventsService;
    protected readonly destroyedSubject: Subject<unknown>;
    constructor(auth: AuthService, events: EventsService);
    startDaemon(): void;
    /**
     * Sets timeouts based on the token expiration.
     * Dispatches AccessTokenExpiringEvent before the access token expires (grace period)
     * Dispatches AccessTokenExpiredEvent when the access token expires.
     */
    watchTokenExpiration(): void;
    ngOnDestroy(): void;
}
