import React from "react"; /** Wraps content and shows a back-to-top button once the parent scrolls. */ export interface ScrollToTopProps { /** Content to wrap. Watches this element's direct parentElement only — not a scroll-search up the tree. */ children: React.ReactNode; /** Tooltip label on the button. */ tooltipLabel?: string; /** Scroll distance (px) after which the button appears. */ threshold?: number; /** Smooth-scroll duration in ms. */ duration?: number; /** Pin to window-level scroll — also the fix when the real scroll container isn't the direct parent. */ useWindow?: boolean; /** Distance from the bottom edge. */ bottom?: string; /** Distance from the right edge. */ right?: string; } /** Visibility depends on the wrapped content's direct parent actually scrolling — see `children`. */ declare const ScrollToTop: React.FC; export default ScrollToTop;