/** Pins a bar to the top of its scroller, over what scrolls under it. * `useStickyTop` moves it below whatever else is pinned there. */ export declare const stickyClasses = "sticky top-0 z-(--layer-sticky) bg-(--theme-app-bg)"; /** The box a sticky element sticks to: its nearest ancestor that scrolls, or * the document's when none does. */ export declare function scrollContainer(el: Element): Element; /** What a page pins at the top of `el`'s scroller over it, such as a page header and a toolbar: * those elements, and how far below the scroller's top their bottom edge sits. */ export declare function pinnedAbove(el: Element): { chrome: HTMLElement[]; bottom: number; }; /** * Pins a `sticky` element just below whatever its scroller already pins at * the top, such as a page header, a toolbar and a tab row, rather than at * `top: 0` behind them. It finds them in the page, so neither they nor the * host declare anything, and it follows them as they change height (a toolbar * wrapping on a narrow screen), move, or come and go, before the browser * paints. Chrome that uses it stacks: each piece pins under the ones before * it, and its own `top` moving is a change the pieces after it follow. * In a box that scrolls on its own, nothing sits above, so it pins at 0. * It also sets `--sticky-top` on the element, for a height that leaves room. */ export declare function useStickyTop(el: HTMLElement | null, enabled: boolean): void;