export class WorkbookStructuralAxisOperations {
    context;
    constructor(context) {
        this.context = context;
    }
    insert(axis, sheetName, start, count, entries) {
        const sheet = this.context.getOrCreateSheet(sheetName);
        this.context.axisEntryStore.spliceAxisEntries(sheet, axis, start, 0, count, entries);
        this.context.bumpSheetStructureVersion(sheet);
    }
    delete(axis, sheetName, start, count) {
        const sheet = this.context.getOrCreateSheet(sheetName);
        const deleted = this.context.axisEntryStore.spliceAxisEntries(sheet, axis, start, count, 0);
        this.context.bumpSheetStructureVersion(sheet);
        return deleted;
    }
    move(axis, sheetName, start, count, target) {
        const sheet = this.context.getOrCreateSheet(sheetName);
        this.context.axisEntryStore.moveAxisEntries(sheet, axis, start, count, target);
        this.context.bumpSheetStructureVersion(sheet);
    }
}
//# sourceMappingURL=workbook-structural-axis-operations.js.map