import { Insertable } from './actions';
import { Column } from 'material-table';
interface MapEditable<T extends object> {
    insertable?: Insertable<T>;
    readonly?: boolean;
    myData: T[];
    columns: Column<T>[];
}
export default function mapEditable<T extends object>({ insertable, readonly, myData, columns, }: MapEditable<T>): {
    isEditHidden: () => boolean;
    onRowUpdate: (newData: any, oldData: any) => Promise<void>;
    onRowUpdateCancelled: () => void;
} | {
    isEditHidden?: undefined;
    onRowUpdate?: undefined;
    onRowUpdateCancelled?: undefined;
};
export {};
