import { McpRecommendedMcpServer } from '../molecules/mcp-server-picker/recommended-toolkits-chip'; import { McpReviewCountChipProps } from '../molecules/mcp-server-picker/review-count-chip'; import { McpToolkitChipProps } from '../molecules/mcp-server-picker/toolkit-chip'; import type * as React from "react"; export type McpSelectionSummaryMcpServer = { /** Stable React key — typically the MCP server name or id. */ id: string; } & Omit; export type McpSelectionSummaryBarProps = { /** * Selected MCP servers, in display order. An empty array renders the idle * placeholder; the bar keeps its height so the surrounding layout doesn't * shift on first selection. * * Servers in `recommendedMcpServers` are NOT also included here — the * consumer separates the two lists so this bar always renders the * grouped recommended chip first, with the rest of the per-server chips * trailing. */ mcpServers: McpSelectionSummaryMcpServer[]; /** * Recommended MCP servers collapsed into a single grouped chip. When this * array is non-empty the bar renders one "Recommended tools" chip in * front of the per-server chips; the chip's popover lists every entry. */ recommendedMcpServers?: McpRecommendedMcpServer[]; /** * Total selected tools across all MCP servers. Drives the count chip's * primary number. */ toolCount: number; /** * Whether the grouped review is currently open — flips the count chip to * its pressed state so the user can see where the click landed. */ reviewing?: boolean; /** * Whether the grouped review is currently filtered to recommended servers — * flips the recommended chip into its active ring state. */ reviewingRecommended?: boolean; /** Custom aria-label for the count chip. */ reviewLabel?: McpReviewCountChipProps["aria-label"]; /** Open the grouped selected-tools view. */ onReview?: () => void; /** Open the grouped review scoped to the recommended set. */ onReviewRecommended?: () => void; /** Open this MCP server's tools to adjust selection. */ onOpenMcpServer?: (id: string) => void; /** Remove this MCP server (and all of its selected tools). */ onRemoveMcpServer?: (id: string) => void; /** Remove the entire recommended set in one go. */ onRemoveRecommended?: () => void; /** Clear the entire selection. */ onClear?: () => void; /** Copy override for the empty / no-selection-yet placeholder. */ emptyMessage?: string; } & Omit, "children" | "onReview">; /** * Persistent selection summary used inside the MCP picker shell: the total * tool count (clickable — opens the grouped selected-tools view), the * grouped recommended chip (if any), one removable chip per other selected * MCP server, and a clear-all on the right. Sits above the results so the * selection is obvious at a glance and easy to prune. * * Pure presentational — the consumer supplies the ordered server list and * the callbacks. Domain-specific ordering (e.g. "newest-selected first") * belongs in the consumer. */ export declare function McpSelectionSummaryBar({ mcpServers, recommendedMcpServers, toolCount, reviewing, reviewingRecommended, reviewLabel, onReview, onReviewRecommended, onOpenMcpServer, onRemoveMcpServer, onRemoveRecommended, onClear, emptyMessage, className, ...rest }: McpSelectionSummaryBarProps): React.JSX.Element; //# sourceMappingURL=mcp-selection-summary-bar.d.ts.map