/** * A sticky bar stops at its scroll container's padding. A host page that pads * its scroller (room for its own floating button, say) would show the page * scrolling past in the strip between the bar and the window's edge. This * paints the page background over that strip, as if the bar reached the edge. * It is a clipped shadow, so it adds no scroll length and catches no clicks. * Render it inside the sticky bar (which is positioned) and only while the bar * is pinned against `edge`; a bar that only ever ends its column can keep it. */ export declare function StickyBarEdge({ edge }: { edge: "top" | "bottom"; }): import("react").JSX.Element; /** True while a sticky `top-0` bar is pinned to the top of its scroll container. */ export declare function useStuckToTop(bar: HTMLElement | null): boolean; /** The nearest ancestor that scrolls vertically; null when the page itself scrolls. */ export declare function scrollContainerOf(node: HTMLElement): HTMLElement | null; /** * Pinned means the bar's top sits on the scroller's content edge (inside its * padding), where `top: 0` holds it; unpinned, it sits lower, in its own place. */ export declare function pinnedToTop(bar: HTMLElement, scroller: HTMLElement | null): boolean;