import { RefObject } from 'react'; /** * Scrolls to an element with cross-platform compatibility * Works reliably on iOS, iPadOS, macOS, and other platforms * */ export type ScrollToElementOptions = { behavior?: 'auto' | 'smooth' | 'instant'; block?: 'start' | 'center' | 'end' | 'nearest'; /** Delay in ms before scrolling. */ delay?: number; /** Pixels to keep above the element. */ offset?: number; }; export declare const scrollToElement: (elementOrRef: HTMLElement | RefObject | null | undefined, options?: ScrollToElementOptions) => void; /** * A custom hook that provides various scrolling utilities. */ export declare const useScrollActions: () => { scrollToTop: () => void; scrollToElement: (elementOrRef: HTMLElement | RefObject | null | undefined, options?: ScrollToElementOptions) => void; scrollToElementWithOffset: (elementRef: RefObject, desiredOffsetFromBottom?: number) => void; }; export declare const ScrollToTop: () => any; export default useScrollActions;