UNPKG

@backtrace/browser

Version:
20 lines (19 loc) 714 B
import { BacktraceSessionProvider } from '@backtrace/sdk-core'; export declare class BacktraceBrowserSessionProvider implements BacktraceSessionProvider { /** * Session persistence interval. If no event was send in the persistence interval * the session is treaten as an old session. */ static readonly PERSISTENCE_INTERVAL: number; private readonly SESSION_LAST_ACTIVE; private readonly SESSION_GUID; get lastActive(): number; readonly newSession: boolean; readonly sessionId: string; private _lastActive; constructor(); afterMetricsSubmission(): void; shouldSend(): boolean; private readLastActiveTimestamp; updateLastActiveTimestamp(): void; }