/** How long a still finger rests before it glides in any direction instead of scrolling. */ export declare const TOUCH_HOLD_MS = 320; /** How far a finger travels before it counts as a swipe rather than a tap. */ export declare const TOUCH_SLOP = 8; export interface TouchGlideOptions { /** What sits under the finger: an item id, a spoke index, or null for empty glass. */ resolve: (clientX: number, clientY: number, root: Element) => T | null; /** Called as the finger glides, and with null when the gesture ends without a lift. */ onGlide: (value: T | null) => void; /** A glide lifted over an item: pin it. */ onLift?: (value: T | null) => void; /** A tap with no glide. Leave unset where the item's own click already handles taps. */ onTap?: (value: T | null) => void; disabled?: boolean; /** Whether the card holds a pin, so Escape or a press that misses the marks lets it go. */ pinned?: boolean; /** Releases the pin. See `usePinRelease`. */ onRelease?: () => void; } /** Finds the nearest `data-glide-id` under a point, for families whose marks are elements. */ export declare function glideTarget(clientX: number, clientY: number, root: Element): string | null; /** * Touch for charts whose marks are separate elements, or are found by position. A finger has no * hover and a touch stays with the element it first landed on, so this follows the point under * the finger instead. A sideways swipe glides at once (the plot pans only vertically); a press and * hold glides in any direction without scrolling the page; lifting after a glide pins. * * Returns a callback ref for the plot, so a plot that mounts after loading is still wired. */ export declare function useTouchGlide(options: TouchGlideOptions): (node: Element | null) => void;