@humanmark/sdk-js
Version:
Browser-native JavaScript SDK for Humanmark human verification challenges
24 lines • 693 B
TypeScript
/**
* Utilities for handling scrollbar-related layout shifts
*/
/**
* Calculate the width of the browser's scrollbar
*/
export declare function getScrollbarWidth(): number;
/**
* Check if the page currently has a visible scrollbar
*/
export declare function hasVisibleScrollbar(): boolean;
/**
* Lock body scroll and prevent layout shift
*/
export declare function lockBodyScroll(): void;
/**
* Unlock body scroll and restore original state
*/
export declare function unlockBodyScroll(): void;
/**
* Clear cached scrollbar width (useful for testing or when system settings change)
*/
export declare function clearScrollbarWidthCache(): void;
//# sourceMappingURL=scrollbar.d.ts.map