import { m as AgentMentionSearchState, A as AgentContextMentionItem, b as AgentMentionBrowseCategory, c as AgentMentionFilterId, e as AgentMentionGroupId } from '../AgentMentionSearchContracts.d-BsdR0M3b.js'; export { d as AgentMentionGroup } from '../AgentMentionSearchContracts.d-BsdR0M3b.js'; import { ReactNode } from 'react'; export { AgentMentionSearchController } from '../mention-search.js'; export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AgentContextMentionInsertResult, AgentContextMentionProvider, AgentContextMentionProviderId, AgentContextMentionQueryInput } from '../context-mention-provider.js'; import '@tiptap/core'; import '@tutti-os/ui-rich-text/at-panel'; import '@tutti-os/workspace-file-reference/contracts'; import '@tutti-os/ui-rich-text/types'; import '@tutti-os/workspace-external-core/contracts'; interface AgentMentionPaletteEntry { key: string; type: "category" | "item" | "expand"; categoryId?: AgentMentionBrowseCategory["id"]; groupId?: AgentMentionGroupId; item?: AgentContextMentionItem; } interface AgentFileMentionPaletteProps { state: AgentMentionSearchState; highlightedKey: string | null; label: string; loadingLabel: string; emptyLabel: string; errorLabel: string; tabHintLabel: string; maxHeightPx: number; shouldCenterHighlightedItem?: boolean; onHighlightChange: (key: string) => void; onSelectItem: (entry: AgentContextMentionItem) => void; onSelectCategory: (categoryId: AgentMentionBrowseCategory["id"]) => void; onSelectFilter: (filter: AgentMentionFilterId) => void; onExpandGroup: (groupId: AgentMentionGroupId) => void; onNavigateHierarchy?: (delta: 1 | -1) => void; onNavigateIntoItem?: (item: AgentContextMentionItem) => void; /** * 可选:点击 issue / app 行末尾的「查看产物」入口时回调(打开引用 picker 并定位)。 * 仅 workspace-issue / workspace-app 行渲染该入口。 */ onOpenReferences?: (item: AgentContextMentionItem) => void; /** Controlled provenance filter supplied by the AgentGUI orchestration layer. */ provenanceFilterControl?: ReactNode; } declare function flattenAgentMentionPaletteEntries(state: AgentMentionSearchState): AgentMentionPaletteEntry[]; declare function groupStartKeys(state: AgentMentionSearchState): string[]; declare function AgentFileMentionPalette({ state, highlightedKey, label, loadingLabel, emptyLabel, errorLabel, tabHintLabel, maxHeightPx, shouldCenterHighlightedItem, onHighlightChange, onSelectItem, onSelectCategory, onSelectFilter, onExpandGroup, onNavigateHierarchy, onNavigateIntoItem, onOpenReferences, provenanceFilterControl }: AgentFileMentionPaletteProps): React.JSX.Element; declare const AgentContextMentionPalette: typeof AgentFileMentionPalette; type AgentContextMentionPaletteProps = AgentFileMentionPaletteProps; export { AgentContextMentionItem, AgentContextMentionPalette, type AgentContextMentionPaletteProps, AgentFileMentionPalette, type AgentFileMentionPaletteProps, AgentMentionBrowseCategory, AgentMentionFilterId, AgentMentionGroupId, type AgentMentionPaletteEntry, AgentMentionSearchState, flattenAgentMentionPaletteEntries, groupStartKeys };