import { RefObject } from 'react'; /** Opening search focuses the search slot; closing restores the previously focused * element (tracked via focusin — the invoker may already be unmounted), else the heading. */ export declare function useSearchFocus(hasSearch: boolean, searchOpen: boolean, searchAreaRef: RefObject, headingRef: RefObject): void; /** Header is "stuck" (compact) once the sentinel above it scrolls out of view. */ export declare function useStuckOnScroll(sticky: boolean, sentinelRef: RefObject): boolean; /** Writes the header's measured height as scroll-padding-top on the nearest scroll * container, so a sticky header never covers focused content. */ export declare function useStickyScrollPadding(sticky: boolean, containerRef: RefObject): void; /** True while the 2-line clamp hides part of the title (drives the native tooltip). */ export declare function useIsTitleClamped(headingRef: RefObject, title: string, enabled: boolean): boolean;