import { type ReactNode } from 'react'; /** * A way to ask, which the person picks for their next message, such as "Think harder". The * counterpart of `ChatOption` in StreamChatAI. */ export type AIChatOption = { id: string; /** The option's name in the menu, such as "Think harder". */ title: string; /** Data of your own, such as what the option sends with the message. */ customData?: Record; /** A line under the title in the menu, such as "Takes longer, for harder questions". */ description?: string; /** An icon shown in the menu and on the chip. */ icon?: ReactNode; /** The option's name on the chip once picked, such as "Think". Defaults to `title`. */ shortTitle?: string; }; export type ChatOptionsListProps = { onSelect: (option: AIChatOption) => void; options: AIChatOption[]; selectedId?: string | null; }; /** * The items of the chat options menu, one per option. `ChatOptions` shows them in the SDK's * `Dropdown`, which moves focus between them and closes on Escape. The counterpart of * `ChatOptionsList`. */ export declare const ChatOptionsList: ({ onSelect, options, selectedId, }: ChatOptionsListProps) => import("react/jsx-runtime").JSX.Element; export type SelectedChatOptionChipProps = { onRemove: () => void; option: AIChatOption; className?: string; disabled?: boolean; }; /** The picked option, with a button that removes it. The counterpart of `SelectedChatOptionChip`. */ export declare const SelectedChatOptionChip: ({ className, disabled, onRemove, option, }: SelectedChatOptionChipProps) => import("react/jsx-runtime").JSX.Element; export type ChatOptionsProps = { options: AIChatOption[]; className?: string; /** The option picked at first, when uncontrolled. */ defaultSelectedId?: string | null; disabled?: boolean; /** The menu button's icon. Defaults to a plus. */ icon?: ReactNode; /** Submits the picked option's id with the composer's form under this name. */ name?: string; /** Called when the person picks an option, or removes it with `null`. */ onSelectedChange?: (option: AIChatOption | null) => void; /** The picked option's id, when controlled. */ selectedId?: string | null; }; /** * A menu of ways to ask, such as "Think harder", and a chip for the one picked, with a button * that removes it. Place it inside `AIMessageComposer`; with `name`, the picked option's id is * submitted with the form. The counterpart of the chat options of `AIComposerView`. */ export declare const ChatOptions: ({ className, defaultSelectedId, disabled, icon, name, onSelectedChange, options, selectedId: selectedIdProp, }: ChatOptionsProps) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=ChatOptions.d.ts.map