import '../../../extensions/scrollIntoView'; import React from 'react'; /** * BackToTopButton component * @param {string} startSelector - user need to scroll over this element to make the button visible * @param {Record} attributes - attributes to be added to the button * @param {Window | HTMLElement} scrollableElement - element that will be listened to scroll events * @returns {JSX.Element} * @description Component that renders a button that scrolls users to the top of the page when clicked * and is only visible when the user has scrolled down at least to the startSelector element and then scrolls up */ type BackToTopProps = { startSelector?: string; attributes?: Record; scrollableElement?: Window | HTMLElement; }; declare const BackToTop: React.FC; export default BackToTop;