import { CancelableEventHandler } from '../internal/events'; import { TableProps } from './interfaces'; interface CellId { row: string; col: string; } interface CellEditingProps { onCancel?: CancelableEventHandler; onSubmit?: TableProps.SubmitEditFunction; } export declare function useCellEditing({ onCancel, onSubmit }: CellEditingProps): { isLoading: boolean; startEdit: (cellId: CellId) => void; cancelEdit: () => void; checkEditing: ({ row, col }: CellId) => boolean; checkLastSuccessfulEdit: ({ row, col }: CellId) => boolean; completeEdit: (cellId: CellId, editCancelled: boolean) => void; submitEdit: ((item: any, column: TableProps.ColumnDefinition, newValue: unknown) => Promise) | undefined; }; export {};