export declare const DISABLE_BG_SCROLL_CLASS = "disable-bg-scroll"; /** * Control if scrolling is enabled in background when modal is opened * @param {boolean} allowScrolling Allow scrolling if true, false otherwise */ export declare const setBodyScroll: (allowScrolling: boolean) => void; /** * Custom hook that runs a function when component mounts * @param {() => void} cb Callback function to run on component mount */ export declare const useDidMount: (cb: () => void) => void; /** * Custom hook that returns viewport height (including scrollbar) as state * @return {(number)} Viewport height */ export declare const useViewportHeight: (__IS_SERVER__?: boolean | undefined) => number | undefined; /** * Custom hook that returns viewport width (including scrollbar) as state * @return {(number)} Viewport width */ export declare const useViewportWidth: (__IS_SERVER__?: boolean | undefined) => number | undefined; declare const _default: { useDidMount: (cb: () => void) => void; useViewportHeight: (__IS_SERVER__?: boolean | undefined) => number | undefined; useViewportWidth: (__IS_SERVER__?: boolean | undefined) => number | undefined; }; export default _default;