import React from 'react';
import '../../views/table-view/plugins';
export interface UseDetailViewOptions {
    /** 视图数据 */
    viewData: any[];
    /** 视图可见列（顺序与可见性同主表） */
    viewColumns: Array<{
        dataIndex: string;
        title: string;
        [key: string]: any;
    }>;
    /** 列定义 */
    columnDefinitions: Array<{
        dataIndex: string;
        title: string;
        [key: string]: any;
    }>;
    /** 当前选中索引 */
    selectedIndex: number;
    /** 设置选中索引 */
    setSelectedIndex: (index: number) => void;
}
export interface DetailColumn {
    dataIndex: string;
    title: string;
    [key: string]: any;
}
export interface DetailItem {
    dataIndex: string;
    title: string;
    rawValue: any;
    renderedValue: React.ReactNode;
    column: DetailColumn;
}
export interface UseDetailViewResult {
    /** 当前选中记录 */
    selectedRecord: any | null;
    /** 详情区展示列 */
    detailColumns: DetailColumn[];
    /** 详情区展示项 */
    detailItems: DetailItem[];
    /** 处理后的列映射 */
    processedColumnMap: Map<string, any>;
    /** 操作列渲染函数 */
    renderOperateCell: ((record: any, index: number) => React.ReactNode) | null;
    /** 渲染单元格值 */
    renderCellValue: (col: any, value: any, rowIndex: number, rowData: any) => React.ReactNode;
    /** 获取行数据（格式化后的文本） */
    getRowData: (record: any) => Record<string, string>;
    /** 上一条 */
    handlePrevious: () => void;
    /** 下一条 */
    handleNext: () => void;
    /** 处理卡片点击 */
    handleCardClick: (item: any, index: number) => void;
}
/**
 * 详情视图 Hook
 * 封装详情视图的通用逻辑
 */
export declare const useDetailView: ({ viewData, viewColumns, columnDefinitions, selectedIndex, setSelectedIndex, }: UseDetailViewOptions) => UseDetailViewResult;
export default useDetailView;
