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<P extends object, R = any>(WrappedComponent: ComponentType<P & RecordBoardContextValue>, displayName: RecordBoardDisplayName): React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<R>>;
export default withRecordBoard;
