import { Ref, MaybeRef } from '../../../node_modules/vue'; /** * Detects whether a sticky element is currently stuck (fixed at its `top` offset) * or in its natural DOM position. * * A 1px invisible sentinel element is inserted immediately before the sticky element. * When that sentinel scrolls out of the IntersectionObserver's root viewport (adjusted * by `topOffset`), the element is considered stuck. * * `topOffset` must match the element's CSS `top` value in pixels. It is read once at * mount time. Pass a `Ref` if the value is computed asynchronously (e.g. from * a CSS variable set by JavaScript after first render). */ export declare function useSticky(elementRef: Ref, topOffset?: MaybeRef): { isStuck: Ref; };