/** * Session management types for idle timeout and heartbeat. */ export interface SessionConfig { /** Minutes between heartbeat API calls while user is active. Default: 10 */ heartbeatIntervalMinutes: number; /** Minutes of inactivity before the warning popup appears. Default: 60 */ idleTimeoutMinutes: number; /** Whether auto-logout is enabled. Default: true */ isAutoLogoutEnabled: boolean; /** Seconds to count down in the warning popup before auto-logout. Default: 60 */ warningDurationSeconds: number; } export declare const DEFAULT_SESSION_CONFIG: SessionConfig; export interface SessionCallbacks { /** Called when the countdown reaches zero — app should sign out. */ onAutoLogout: () => void; /** Called to send a heartbeat API request. */ onHeartbeat: () => void; /** Called when the session is extended (heartbeat success or "Continue Session"). */ onSessionExtended: () => void; /** Called when the warning countdown starts. */ onWarningStart: (secondsRemaining: number) => void; /** Called every second during the countdown. */ onWarningTick: (secondsRemaining: number) => void; }