/** * Hook that locks body scroll * * @param lock - Whether to lock scroll (default: true) * * @example * ```tsx * const Modal = ({ isOpen }: { isOpen: boolean }) => { * useLockBodyScroll(isOpen); * return isOpen ?
Modal Content
: null; * }; * ``` * * @remarks * SSR-safe: This hook checks for browser and DOM availability before attempting * to manipulate the document body. In server-side rendering environments, the hook * will safely return without errors. */ export declare function useLockBodyScroll(lock?: boolean): void; //# sourceMappingURL=useLockBodyScroll.d.ts.map