import { type IChatConversationLocalItem, type Message } from "../../model.js"; /** * Provides the ability to scroll to the bottom for assistant chat messages. * * Some assistant responses (semantic search tree, charts) render asynchronously and keep * increasing the container height even after Suspense resolves. If we scroll immediately * when a new message arrives, we often land a few pixels above the true bottom because * `scrollHeight` is still growing. * * To mitigate that, we wait for `STABLE_SCROLL_TICKS` consecutive animation frames with * identical `scrollHeight` before performing the scroll. This preserves the smooth UX * while guaranteeing the viewport ends at the actual bottom once the async content settles. */ export declare function useMessageScroller(messages: (Message | IChatConversationLocalItem)[]): { scrollerRef: import("react").RefObject; scrollToBottom: (options?: ScrollToOptions) => void; }; //# sourceMappingURL=MessageScroller.d.ts.map