/** * The visual viewport has shrunk by at least a keyboard's height. iOS Safari and Android Chrome (no * `interactive-widget` in the viewport meta) keep `innerHeight` at the full layout height while the * visual viewport shrinks above the keyboard. Measured in screen px (`height × scale`), so a pinch * zoom does not read as a keyboard. */ export declare const isVisualViewportShrunkByKeyboard: (viewport?: VisualViewport | null | undefined) => boolean; /** An element that brings up the on-screen keyboard when focused. */ export declare const isTextField: (element: Element | null) => element is HTMLElement; /** * The on-screen keyboard is open: a text field has focus **and** the visual viewport has shrunk by at * least a keyboard's height. Both are needed: a hardware keyboard never shrinks the viewport, and a * shrunk viewport with no text field focused is a browser toolbar or split screen, not a keyboard. */ export declare const isOnScreenKeyboardOpen: () => boolean; /** * Shared on-screen keyboard detection (pinned bars PIN-7, ASMA-8737). Use it to step a pinned bar * out of the way while the user types; never use the visual viewport to size the layout decision * itself, which is made against `window.innerHeight`. */ export declare const useOnScreenKeyboardOpen: () => boolean;