import { MotionValue } from 'motion/react'; export interface GlideSpring { stiffness: number; damping: number; mass?: number; } /** * A motion value that springs to each target it is given and always lands exactly on it. * Every move is its own glide to a known destination, rather than a spring that follows another * value, so an interrupted gesture or a paused frame can never leave it resting short of its * target. A new target takes over from wherever the value is, keeping its speed. * * The spring advances by at most one frame's time per frame. When the page stalls, such as while * linked charts re-render together, the glide carries on from where it was instead of jumping * ahead to where the clock says it should be. */ export declare function useGlide(initial: number, spring: GlideSpring): readonly [MotionValue, (to: number, instant?: boolean) => void, MotionValue];