import { Observable } from 'woby'; /** * Custom hook that locks the body scroll when `locked` is true. * It prevents scrolling on the `body` element and adjusts `padding-right` to prevent content reflow * caused by the scrollbar disappearing. * * @param initialLocked - Initial state of the locked body. Defaults to `false`. * @param rootId - The ID of the root element of the application. Defaults to '___gatsby'. * This is used to calculate the scrollbar width to prevent content reflow. * @returns An observable boolean indicating whether the body is currently locked. */ export declare function useLockedBody(initialLocked?: boolean, rootId?: string): Observable; //# sourceMappingURL=useLockedBody.d.ts.map