import type { MessageScrollerScrollable, MessageScrollerScrollAlign, MessageScrollerVisibilityState } from "./types.js"; declare function getMessageScrollerScrollable({ content, scrollEdgeThreshold, spacer, viewport, }: { content: HTMLElement | null; scrollEdgeThreshold: number; spacer: HTMLElement | null; viewport: HTMLElement | null; }): MessageScrollerScrollable; declare function getMessageScrollerVisibilityState({ content, scrollMargin, scrollPreviousItemPeek, spacer, viewport, visibleMessageIds, }: { content: HTMLElement | null; scrollMargin: number; scrollPreviousItemPeek: number; spacer: HTMLElement | null; viewport: HTMLElement | null; visibleMessageIds: Set; }): MessageScrollerVisibilityState; declare function getMessageScrollerItems(content: HTMLElement, spacer: HTMLElement | null): HTMLElement[]; declare function getNewScrollAnchor(items: HTMLElement[], previousItemCount: number): HTMLElement | null; declare function getUnanchoredScrollAnchor(items: HTMLElement[], handledAnchors: { has(element: HTMLElement): boolean; }): HTMLElement | null; declare function hasMultipleNewScrollAnchors(items: HTMLElement[], previousItemCount: number): boolean; declare function getLastScrollAnchor(items: HTMLElement[]): HTMLElement | null; declare function getFirstVisibleMessageItem({ content, spacer, viewport, }: { content: HTMLElement; spacer: HTMLElement | null; viewport: HTMLElement; }): HTMLElement | null; declare function getElementScrollTop({ align, element, scrollMargin, spacer, viewport, }: { align: MessageScrollerScrollAlign; element: HTMLElement; scrollMargin: number; spacer: HTMLElement | null; viewport: HTMLElement; }): number; declare function getElementTop(element: HTMLElement, viewport: HTMLElement): number; declare function getElementViewportTop(element: HTMLElement, viewport: HTMLElement): number; declare function getTailSpacerHeight({ content, scrollTop, spacer, viewport, }: { content: HTMLElement; scrollTop: number; spacer: HTMLElement | null; viewport: HTMLElement; }): number; declare function getContentBottom({ content, spacer, viewport, }: { content: HTMLElement; spacer: HTMLElement | null; viewport: HTMLElement; }): number; declare function getMaxScrollTop(viewport: HTMLElement): number; declare function getContentBlockPadding(spacer: HTMLElement | null): { end: number; start: number; }; declare function getFlexGap(element: HTMLElement | null): number; export { getContentBlockPadding, getContentBottom, getElementScrollTop, getElementTop, getElementViewportTop, getFirstVisibleMessageItem, getFlexGap, getLastScrollAnchor, getMaxScrollTop, getMessageScrollerItems, getMessageScrollerScrollable, getMessageScrollerVisibilityState, getNewScrollAnchor, getTailSpacerHeight, getUnanchoredScrollAnchor, hasMultipleNewScrollAnchors, };