import * as React from 'react';
import type { ICnTableColumn } from '../../cn-ai-table/view/components/views/table-view/cell-format/cn-table-cell-format/types/column';
interface EditingCell {
    rowId: string;
    columnId: string;
    originalRow?: any;
}
interface UseCellEditingReturn {
    editingCell: EditingCell | null;
    editingValue: string;
    setEditingValue: React.Dispatch<React.SetStateAction<string>>;
    setEditingCell: React.Dispatch<React.SetStateAction<EditingCell | null>>;
    handleCellClick: (rowId: string, columnId: string, currentValue: any, originalRow: any, event: React.MouseEvent) => void;
    handleTextareaChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
    handleCellBlur: React.FocusEventHandler<HTMLTextAreaElement>;
    handleTextareaKeyDown: React.KeyboardEventHandler<HTMLTextAreaElement>;
    isEditing: (rowId: string, columnId: string) => boolean;
}
/**
 * 单元格编辑功能 Hook
 * @param onSave 保存回调函数，参数为 (rowId, columnId, value, originalRow)
 * @param columns 列配置数组，用于提取格式化后的显示值
 */
export declare function useCellEditing(onSave?: (rowId: string, columnId: string, value: string, originalRow: any) => void, columns?: ICnTableColumn[]): UseCellEditingReturn;
export {};
