import { type RefObject } from 'react';
/**
 * Hook to preserve scroll position when older messages are loaded at the top
 * This prevents the chat from jumping when new content is prepended
 * @param {RefObject<T>} containerRef - Reference to the scrollable container element
 * @param {number} messagesCount - Current count of messages in the list
 * @returns {void}
 */
export declare function useScrollPreservation<T extends HTMLElement>(containerRef: RefObject<T>, messagesCount: number): void;
