import * as react_jsx_runtime from 'react/jsx-runtime'; import * as React from 'react'; import { Button } from './button.js'; import 'class-variance-authority/types'; import 'class-variance-authority'; type MessageScrollerContextValue = { autoScroll: boolean; isAtBottom: boolean; scrollPreviousItemPeek: number; setViewportEl: (el: HTMLDivElement | null) => void; scrollToEnd: (behavior?: ScrollBehavior) => void; notifyContentChange: () => void; registerScrollAnchor: (el: HTMLElement | null) => void; onViewportScroll: () => void; }; /** Headless scroll state for a conversation transcript. */ declare function useMessageScroller(): MessageScrollerContextValue; /** `true` when the viewport is not pinned to the latest content. */ declare function useMessageScrollerScrollable(): boolean; /** `true` when the jump-to-latest affordance should be visible. */ declare function useMessageScrollerVisibility(): boolean; declare function MessageScrollerProvider({ autoScroll, scrollPreviousItemPeek, children, }: { autoScroll?: boolean; scrollPreviousItemPeek?: number; children: React.ReactNode; }): react_jsx_runtime.JSX.Element; declare function MessageScroller({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function MessageScrollerViewport({ className, ref, onScroll, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function MessageScrollerContent({ className, children, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function MessageScrollerItem({ className, scrollAnchor, children, ...props }: React.ComponentProps<"div"> & { scrollAnchor?: boolean; }): react_jsx_runtime.JSX.Element; declare function MessageScrollerButton({ direction, className, children, variant, size, ...props }: React.ComponentProps<"button"> & { direction?: "start" | "end"; variant?: React.ComponentProps["variant"]; size?: React.ComponentProps["size"]; }): react_jsx_runtime.JSX.Element; export { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility };