import React from 'react'; import type { GlobalSearchActiveTab, GlobalSearchItemContext, GlobalSearchMode, GlobalSearchProvider, GlobalSearchStateMap } from '../types'; interface GroupedResultsProps { providers: GlobalSearchProvider[]; stateMap: GlobalSearchStateMap; keyword: string; mode: GlobalSearchMode; locale: string; /** 点击 "View all" 切到对应 Tab */ onJumpTab: (tab: GlobalSearchActiveTab) => void; /** 透传给 Provider renderItem 的关闭回调 */ onClose: () => void; /** 透传给 Provider renderItem 的 navigate */ navigate?: (url: string) => void; /** 就地打开详情(透传进 Provider 渲染上下文) */ onOpenDetail?: GlobalSearchItemContext['onOpenDetail']; /** 自管实时订阅的 Provider 用于通知外层刷新详情 */ onRealtimePatchItems?: GlobalSearchItemContext['onRealtimePatchItems']; /** 详情刷新版本表(实时 delta 命中时递增) */ detailRefreshVersions?: GlobalSearchItemContext['detailRefreshVersions']; /** 自管取数的 Provider 回写总数(供分组头「共 N 条」/「View all」) */ onReportTotal?: GlobalSearchItemContext['onReportTotal']; } /** * All 模式下按 Provider 分组的结果列表。 * * - 每个组独立 loading / empty / error,先到先显示; * - 超过展示上限时显示 "View all N",点击切到对应 Tab。 */ declare const GroupedResults: React.FC; export default GroupedResults;