import { throwWithCause } from '../../../helpers/errors.mjs';
/**
 * An abstract class that defines the structure of an undo/redo action.
 *
 * @class BaseAction
 * @private
 */ export class BaseAction {
    undo() {
        throwWithCause('Not implemented');
    }
    redo() {
        throwWithCause('Not implemented');
    }
    constructor(actionType){
        /**
   * @param {string} actionType The action type.
   */ this.actionType = '';
        this.actionType = actionType;
    }
}
