import React, { ComponentType } from 'react'; import type { RecordBoardContextValue, RecordBoardChildComponentProps } from '../types'; declare type RecordBoardDisplayName = keyof RecordBoardChildComponentProps; /** * 为 RecordBoard 下的子组件注入 context,并合并 childComponentProps[displayName]。 * 用于 Search / ToolBar / Pagination / Grid / CardList 等「被接管」的通用组件封装。 */ declare function withRecordBoard
(WrappedComponent: ComponentType
, displayName: RecordBoardDisplayName): React.ForwardRefExoticComponent