import { IObservable } from "../../../../base/common/observable.js"; /** * Service decorator for {@link MobileVisualViewport}. Consumers inject * this to observe the virtual keyboard height of the agents workbench * window or to gate behaviour on whether the keyboard is currently * visible. */ export declare const IMobileVisualViewport: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; /** * Service interface for {@link MobileVisualViewport}. See the class for * a full description of the publishing surface. */ export interface IMobileVisualViewport { readonly _serviceBrand: undefined; /** * Observable: the current virtual keyboard height in CSS pixels, * computed as `max(0, window.innerHeight - visualViewport.height)`. * Always `0` on platforms without `visualViewport` support. */ readonly keyboardHeight: IObservable; /** * Observable: `true` when {@link keyboardHeight} exceeds * {@link KEYBOARD_VISIBLE_THRESHOLD_PX}. Cheaper for consumers than * subscribing to `keyboardHeight` directly when they only care * about the keyboard-visible transition (it only fires on the * boolean flip, not on every height micro-change during the * keyboard open/close animation). */ readonly isKeyboardVisible: IObservable; }