import type { ReactNode } from 'react'; import type { AnyObject } from "../../_util/type"; import type { GetRowKey, Key, TableEditableConfig } from '../interface'; declare function useEditable(props: TableEditableConfig & { getRowKey: GetRowKey; getRecordByKey: (key: Key) => RecordType; dataSource: RecordType[]; childrenColumnName: keyof RecordType; setDataSource: (dataSource: RecordType[]) => void; }): { editingRowKey: import("../../_util/type").SafeKey | undefined; setEditingRowKey: (updater: import("../../_util/type").SafeKey | ((origin: import("../../_util/type").SafeKey | undefined) => import("../../_util/type").SafeKey | undefined) | undefined, ignoreDestroy?: boolean | undefined) => void; editingActionRender: (record: RecordType, index: number) => ReactNode[]; startEdit: (recordKey: Key) => boolean; cancelEdit: () => boolean; }; export default useEditable;