/** * Whether a slider is on the screen: for what should only happen where * somebody can see it. */ import type { Slider } from '../index.js'; /** * @param slider The slider. * @param tell Called when it changes. Until * the browser says otherwise, * the slider is off the screen: * a video or a timer far down the * page does not start for a frame. * @return Stops watching. */ export declare function onScreen(slider: Slider, tell: (on: boolean) => void): () => void;