detect-tab
Version:
A comprehensive tab detection and management library for web applications
19 lines • 879 B
TypeScript
export { DetectTab } from './DetectTab';
export { TabState, TabEvent, DetectTabOptions, TabInfo, TabEventCallback, TabStateChangeCallback, TabFocusCallback } from './types';
export { isVisibilityAPISupported, isBrowserSupported, getVisibilityProperties, debounce, now, formatDuration, safeJSONParse, isStorageAvailable } from './utils';
import { DetectTab } from './DetectTab';
import { TabState, TabInfo } from './types';
/**
* Simple functions using the default instance
*/
export declare const isVisible: () => boolean;
export declare const isFocused: () => boolean;
export declare const getState: () => TabState;
export declare const getTabInfo: () => TabInfo | null;
export declare const getTimeStats: () => {
totalVisibleTime: string;
totalHiddenTime: string;
timeInCurrentState: string;
} | null;
export default DetectTab;
//# sourceMappingURL=index.d.ts.map