import { type ReactNode } from 'react'; export declare const SIDEBAR_MIN_WIDTH_PX = 200; /** A conversation list's drawer on a layout too narrow to keep it beside the * content: it covers the chat's own positioned container, not the window, and * stays mounted so the list keeps its scroll and search between openings. */ export declare const sidebarDrawerProps: { readonly contained: true; readonly side: 'left'; readonly width: 'min(20rem, 85%)'; readonly modal: 'trap-focus'; readonly keepMounted: true; readonly closeButton: false; readonly padded: false; }; export declare const SIDEBAR_MAX_WIDTH_PX = 480; export interface ConversationSidebarGroup { /** Also what remembers the group folded, so keep it the same across renders and visits. */ key: string; label: ReactNode; tone?: 'default' | 'attention'; items: T[]; } /** A list of conversations beside the thread: headed groups of rows that * collapse to a rail, with an optional drag handle for the width. The host * decides what is listed, how it is grouped and how each row reads. A group's * heading folds its rows away, and the list remembers it folded. ↑ and ↓ * move focus between its rows. Rendered by `AppFrameTakeoverContent`, it is * the app's navigation instead: the frame's rail and width are its own, and * it takes the navigation's colors, so `collapsed`, the toggle and `resize` * go unused. */ export declare function ConversationSidebar({ label, collapsed: collapsedProp, onToggle, toggleLabels, resize, fill: fillProp, drawer, groups, groupsStorageKey, getKey, renderRow, loading, placeholder, top, rail, footer, cycle, groupTestId, children, }: { label?: string; collapsed: boolean; onToggle: () => void; toggleLabels: { open: string; close: string; }; /** Omit for a fixed width. A `storageKey` keeps this list's width apart * from the others'. */ resize?: { storageKey?: string; label: string; hint: string; }; /** Takes the width of its container, as inside a drawer, with no rail and * no drag handle. */ fill?: boolean; /** Shows the list in a drawer over the page instead of beside it; it fills * the drawer. */ drawer?: { open: boolean; onClose: () => void; label: string; } | undefined; groups: ConversationSidebarGroup[]; /** Where the groups the reader folded are remembered. Lists without one share a key, so give * one to a list whose group keys another list might also use. */ groupsStorageKey?: string; getKey: (item: T) => string; /** One `SidebarRow`. */ renderRow: (item: T) => ReactNode; loading?: boolean; /** Shown instead of the groups when there are none, such as an empty * state, a search with no matches, or an error. */ placeholder?: ReactNode; /** Above the list, collapsed or not: new-item buttons and search. */ top?: ReactNode; /** What the collapsed rail holds, as `SidebarRailItem`s. */ rail?: ReactNode; /** Beside the toggle at the bottom, while expanded. */ footer?: ReactNode; /** ⌘⌥↑ and ⌘⌥↓ (Ctrl+Alt elsewhere) select the previous or next item. */ cycle?: { current: T | undefined; onSelect: (item: T) => void; }; groupTestId?: string; /** Dialogs and menus that belong to the list. */ children?: ReactNode; }): import("react").JSX.Element;