interface ScrollOptions { /** Amount of padding (in pixels) from scrollable container edge when scrolling */ padding?: number; /** Whether to scroll instantly or smoothly */ behavior?: ScrollBehavior; } /** * A custom hook that provides scroll management utilities for sidebar sections. * Used to automatically scroll elements into view when they expand near the * bottom of their nearest scrollable ancestor container (not the viewport). * * This hook finds the closest scrollable ancestor element (with overflow-y: auto or scroll) * and scrolls within that container, not the viewport. This is important when using * the hook in nested scrollers or modals. * * @example * const { scrollIntoView } = useSectionScroll() * scrollIntoView(sectionRef.current) */ export declare const useSectionScroll: (options?: ScrollOptions) => { scrollIntoView: (element: HTMLElement) => void; findScrollableAncestor: (element: HTMLElement | null) => HTMLElement | null; }; export default useSectionScroll;