import type { Nullable, MaybeRefOrGetter } from '../types/shared/utils'; import type { ShallowRef } from 'vue'; export interface UseStickToBottomOptions { threshold?: MaybeRefOrGetter; enabled?: MaybeRefOrGetter; /** Sticky bar inside the container: pointerdowns there are ignored, and hiding it shifts the scroll range. */ action?: MaybeRefOrGetter>; } export interface UseStickToBottomReturn { isAtBottom: ShallowRef; scrollToBottom: () => void; forceStickToBottom: () => void; stickIfNeeded: () => void; update: () => void; } /** * Follow is a flag of its own: a container mounted over content taller than the viewport measures * "not at bottom" before the first stick runs. Only an upward move the layout does not explain ends it. * * Growth arrives through the content observers, the deferred resize pass, and `stickIfNeeded` calls * from a consumer that computes its own height (a virtual list sizing its content from measurements, * whose growth is a style no node observer can attribute and a resize that lands after the paint). */ export declare function useStickToBottom(container: MaybeRefOrGetter>, content?: MaybeRefOrGetter>, options?: UseStickToBottomOptions): UseStickToBottomReturn;