import * as React from "react";
/**
* Keeps a scrollable container pinned to its bottom whenever `signal` changes
* (typically a string encoding the messages array length and streaming token
* count).
*
* Disengages temporarily once the user scrolls up — pinning resumes when the
* user scrolls back near the bottom. Returns a callback ref to attach to the
* scrollable element; the listener follows the element across re-mounts.
*/
export declare function useChatAutoScroll<T extends HTMLElement>(signal: string, enabled: boolean): React.RefCallback<T>;
