/** * A React hook that detects user inactivity across the browser window. * Event listeners are automatically throttled for maximum performance. * * @param {number} timeout - The duration in milliseconds of inactivity required before the user is considered idle (default: 60000ms). * @param {(keyof WindowEventMap)[]} events - An array of DOM events to listen to for activity (e.g., `["mousemove", "keydown"]`). * @returns {boolean} `true` if the user is currently idle, `false` otherwise. */ export declare function useIdle(timeout?: number, events?: (keyof WindowEventMap)[]): boolean; export default useIdle;