import { EventEmitter, NgZone, OnDestroy } from '@angular/core'; import { IdleExpiry } from './idleexpiry'; import { Interrupt } from './interrupt'; import { InterruptSource } from './interruptsource'; import { KeepaliveSvc } from './keepalivesvc'; import * as i0 from "@angular/core"; export declare enum AutoResume { disabled = 0, idle = 1, notIdle = 2 } /** * A service for detecting and responding to user idleness. */ export declare class Idle implements OnDestroy { private expiry; private zone; private platformId?; private idle; private timeoutVal; private autoResume; private interrupts; private running; private idling; private idleHandle; private timeoutHandle; private countdown; private keepaliveEnabled; private keepaliveSvc; onIdleStart: EventEmitter; onIdleEnd: EventEmitter; onTimeoutWarning: EventEmitter; onTimeout: EventEmitter; onInterrupt: EventEmitter; [key: string]: any; constructor(expiry: IdleExpiry, zone: NgZone, keepaliveSvc?: KeepaliveSvc, platformId?: Object); setIdleName(key: string): void; getKeepaliveEnabled(): boolean; setKeepaliveEnabled(value: boolean): boolean; getTimeout(): number; setTimeout(seconds: number | boolean): number; getIdle(): number; setIdle(seconds: number): number; getAutoResume(): AutoResume; setAutoResume(value: AutoResume): AutoResume; setInterrupts(sources: Array): Array; getInterrupts(): Array; clearInterrupts(): void; isRunning(): boolean; isIdling(): boolean; watch(skipExpiry?: boolean): void; setIdleIntervalOutsideOfZone(watchFn: () => void, frequency: number): void; stop(): void; timeout(): void; interrupt(force?: boolean, eventArgs?: any): void; private setIdling; private toggleState; private setTimeoutIntervalOutsideZone; private toggleInterrupts; private getExpiryDiff; private doCountdownInZone; private doCountdown; private safeClearInterval; private startKeepalive; private stopKeepalive; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } //# sourceMappingURL=idle.d.ts.map