import React from "react"; import { ReactNextElement } from "@next-core/react-element"; import "@next-core/theme"; import type { GeneralIconProps } from "@next-bricks/icons/general-icon"; export interface ActionItem { text: string; key: string; icon?: GeneralIconProps; hidden?: boolean; } export interface ActionButtonsProps { items?: ActionItem[]; activeKey?: string | null; } /** * 动作按钮组,支持选中状态切换,用于聊天框的功能入口。 * * @description 动作按钮组,支持选中状态切换,用于聊天框的功能入口。 * @category ai-portal */ export declare class ActionButtons extends ReactNextElement implements ActionButtonsProps { #private; /** * 按钮列表配置,每项包含文本、唯一键值及可选图标 */ accessor items: ActionItem[] | undefined; /** * 当前选中按钮的键值,选中后显示删除图标,再次点击可取消选中 */ accessor activeKey: string | null | undefined; render(): React.JSX.Element; }