/** * How much of the window the software keyboard is covering. * * A `position: fixed` sheet gets no help from the browser here — the built-in * "scroll the focused field into view" only moves elements that are in the * document flow, so on iOS the keyboard simply covers the sheet. * * The two platforms hide the keyboard in different places, and this one * formula covers both. iOS keeps the layout viewport at full height and * shrinks (and shifts) the visual viewport, so the difference is the keyboard. * Android resizes the layout viewport itself, so `innerHeight` shrinks too and * the difference falls out to zero — which is the right answer there, because * the bottom of the window is already above the keyboard. * * `offsetTop` matters as much as `height`: iOS shifts the visual viewport up * as well as shrinking it, and ignoring the shift leaves the sheet floating * exactly that far off, with a strip of page showing beneath it. */ export declare class KeyboardInset { private onChange; private timer; private lastReading; private handler; current(): number; observe(onChange: (inset: number) => void): void; stop(): void; } //# sourceMappingURL=keyboard-inset.d.ts.map