import type { MaybeRefOrGetter } from '../types/shared/utils'; import type { ShallowRef } from 'vue'; export interface UseScrollspyOptions { /** Scrollable container. @default window */ scrollTarget?: MaybeRefOrGetter; /** Pixels above the fold that count as passed; match a sticky header's height. @default 0 */ topOffset?: MaybeRefOrGetter; } export interface UseScrollspyReturn { activeIndex: ShallowRef; activeEl: ShallowRef; /** Recompute from the current layout, e.g. after a route switch or async content. */ update: () => void; } /** `targets` must be in document order: the probe line is bisected against their offsets. */ export declare function useScrollspy(targets: MaybeRefOrGetter, options?: UseScrollspyOptions): UseScrollspyReturn;