/** Below this the UI is a phone: menus become sheets, drawers drag. */ export declare const NARROW_PX = 640; /** Below this the pointer is a finger: hover-only affordances are suppressed. */ export declare const TOUCH_PX = 1024; /** * Below this a horizontal application nav is folded into its drawer. * * Separate from NARROW_PX because the two answer different questions. A phone * is a phone at 640; a row of brand, links, settings and account needs about * 780 before it fits, so between those two numbers the nav rendered wide and * pushed the document past the viewport — worst at 640 itself, where the page * ran 139px wider than the screen showing it. * * A fixed number is a compromise here and worth naming as one: the width a nav * needs is a function of how many links it carries and how long their labels * are, so this value holds for the navs in this system and would need * revisiting for one materially larger. The drawer is the safe side of the * trade — folding a nav that would have fitted costs a tap, and not folding * one that does not costs a sideways scroll on every screen. */ export declare const NAV_PX = 800; /** True while the viewport is narrower than `px`. */ export declare function useBelow(px: number): boolean; /** Phone-sized: present menus as sheets. */ export declare const useIsNarrow: () => boolean; /** Touch-sized: no hover, so hover-only affordances must not be the only path. */ export declare const useIsTouch: () => boolean; /** Too narrow for a horizontal nav row: present the links as a drawer. */ export declare const useNavFolds: () => boolean; //# sourceMappingURL=use-narrow.d.ts.map