interface BackToTopProps { /** Pixels scrolled before the button appears. */ threshold?: number; smooth?: boolean; label?: string; position?: 'bottom-right' | 'bottom-left'; /** * Scroll container to watch. Defaults to the window. * Pass an element (e.g. an overflow panel) when the page itself doesn't scroll. */ target?: HTMLElement | null; /** * `fixed` = viewport (default for window). * `absolute` = relative to nearest positioned ancestor (use with a local `target`). */ mode?: 'fixed' | 'absolute'; class?: string; } declare const BackToTop: import("svelte").Component; type BackToTop = ReturnType; export default BackToTop;