import { type ClientOverride } from "../session-context.js"; export type SessionListLabels = { heading: string; newChat: string; empty: string; loading: string; loadMore: string; rename: string; archive: string; /** Shown for a few seconds after archiving, before the chat's name. */ archived: string; undo: string; save: string; cancel: string; }; export type SessionListProps = ClientOverride & { selectedSessionId?: string | null | undefined; onSelect: (sessionId: string) => void; /** Shown as a "New chat" button when provided. */ onNewChat?: (() => void) | undefined; /** Allow inline rename (`updateSession`). Defaults to true. */ rename?: boolean | undefined; /** * Offer "Archive" (`updateSessionArchive` with `archived: true`). Archiving * is for everyone and needs control of the chat: the chat leaves the list, * Undo is offered for a few seconds, and then its content moves to * long-term storage for good (it stays readable). Defaults to true. An * older session proxy that reports `archive: false` also hides it. */ archive?: boolean | undefined; /** * List only chats the signed-in person started or messaged. Defaults to * false: every root chat Opengeni lets them read in the workspace. */ mineOnly?: boolean | undefined; /** Called after the selected chat was archived, so the host can move on. */ onArchived?: ((sessionId: string) => void) | undefined; pageSize?: number | undefined; /** Change the reference to force a refetch (for example after creating a chat). */ refreshKey?: unknown; labels?: Partial | undefined; className?: string | undefined; }; /** * The workspace's root chats the current user may read, newest activity * first. Opengeni enforces visibility; `mineOnly` narrows the list to the * user's own chats. */ export declare function SessionList({ client, workspaceId, selectedSessionId, onSelect, onNewChat, rename, archive, mineOnly, onArchived, pageSize, refreshKey, labels: labelOverrides, className, }: SessionListProps): import("react").JSX.Element;