interface ScrollLockOptions { /** * Whether the scroll lock is enabled * @default false */ enabled?: boolean; /** * Whether to reserve scrollbar width to prevent layout shift * @default true */ reserveScrollBarGap?: boolean; } /** * 鎖定/解鎖頁面捲動的 Hook。 * * 支援多層巢狀鎖定(nested modals/overlays),保留捲軸寬度以防止版面偏移, * 並針對 iOS Safari 的 rubber band scrolling 進行特別處理。 * * @example * ```tsx * import { useScrollLock } from '@mezzanine-ui/react'; * * function Modal({ open }) { * useScrollLock({ enabled: open }); * return
...
; * } * ``` */ export declare function useScrollLock(options?: ScrollLockOptions): void; export {};