/** * An extremely simple "polyfill" for the `window.screen.orientation` just for * the `type` value that is required for the `useOrientation` hook. * * @see {@link https://caniuse.com/screen-orientation} * @returns the orientation type either from the `window.screen.orientation` or * by comparing the `availHeight` and `availWidth` on the `window.screen` * @internal */ export declare const getOrientationType: () => OrientationType; /** * This hook uses the {@link https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation} API * to determine if the screen is landscape or portrait. For browsers that do not * support this API yet, it will polyfill that behavior using a resize handler * instead. * * @see {@link https://caniuse.com/screen-orientation} * @returns the current orientation type */ export declare function useOrientation(): OrientationType;