// @flow declare export default function useLockScrolling( ref: {| current: HTMLElement | null |}, lock?: boolean, ): void;