import type { RefObject } from "react"; import type { ChatMessageBase } from "../../Chat/types"; /** * React hook to compute the “fill” height below the last user message, * based on the scroll container’s height, the last user‐message element’s height, * and any CSS gap/padding offsets. * * @param scrollRef - The ref to the scroll container. * @param lastUserMessageRef - The ref to the last user message. * @param messages - The messages to display in the chat. * @param lastMessageSubmitted - Whether the last message has been submitted. * @param spacingOffset - The spacing offset. */ export declare function useLastMessageHeight(scrollRef: RefObject, lastUserMessageRef: RefObject, messages: ChatMessageBase[], lastMessageSubmitted: boolean, spacingOffset?: number): number;