export interface StickToBottomMetrics { scrollTop: number; scrollHeight: number; clientHeight: number; } /** Pure: is the scroll position within `threshold` px of the bottom? */ export declare function isNearBottom(metrics: StickToBottomMetrics, threshold: number): boolean; export interface UseStickToBottomOptions { /** Px distance from the bottom under which the view is considered pinned. */ threshold?: number; } export interface UseStickToBottomReturn { /** Attach to the `` root (or any element). */ scrollRef: (node: T | null) => void; /** Whether the view is currently pinned near the bottom. */ isPinned: boolean; /** Force-scroll to the bottom and re-pin. */ scrollToBottom: () => void; } export declare function useStickToBottom(options?: UseStickToBottomOptions): UseStickToBottomReturn;