import type { MutableRefObject, ReactElement } from 'react'; import React from 'react'; import type { ICellEditorParams } from 'ag-grid-community'; import type { ICellEditorReactComp } from 'ag-grid-react'; export declare class RowEditorData { data: T; mode?: RowUpdateMode; constructor(data: T, mode?: RowUpdateMode); } export declare type RowUpdateMode = 'replace' | 'merge'; export declare type RowEditorActionType = 'stop' | 'next' | { /** 此次修改是整行数据替换还是合并,默认是合并 */ updateMode?: RowUpdateMode; action?: 'stop' | 'next'; }; export interface RowEditorParams { suppressEnterEvent?: boolean; isCancelAfterEnd?: (newValue: T, data: T) => boolean; render: (val: K, data: T, params: ICellEditorParams & { ref: MutableRefObject<{ select?: () => void; focus?: () => void; } | null>; onChange: (val: Partial, action?: RowEditorActionType) => void; }) => ReactElement | null; } declare const _default: React.ForwardRefExoticComponent & RowEditorParams & React.RefAttributes>; export default _default;