import { ListBoxItemProps as RACListBoxItemProps, ListBoxProps as RACListBoxProps } from 'react-aria-components'; /** * Configured history item. `id` is the key reported by list selection. */ export type ChatHistoryItem = Omit & Required> & { /** * Visible title and accessible name. Overflow truncates to one line and * gains a tooltip while its row is hovered. */ label: string; /** * Verbatim secondary line and accessible description. The caller owns all * formatting, including relative-time policy. */ subtitle: string; /** * Adds an unread dot and assistive label. Defaults to `false`. */ unread?: boolean; }; export type ChatHistoryProps = Omit, "children" | "items" | "className" | "style" | "layout" | "orientation" | "selectionMode" | "renderEmptyState"> & { /** * Chats in display order. Omit or pass `[]` to show only New Chat. */ items?: ChatHistoryItem[]; /** New Chat remains visible but inert when omitted. */ onNewChat?: () => void; className?: string; };