export class WorkbookAxisMetadataStore {
    options;
    constructor(options) {
        this.options = options;
    }
    setRowMetadata(sheetName, start, count, size, hidden, geometry, filterHidden) {
        return this.setAxisMetadata('row', sheetName, start, count, size, hidden, geometry, filterHidden);
    }
    getRowMetadata(sheetName, start, count) {
        return this.getAxisMetadata('row', sheetName, start, count);
    }
    listRowMetadata(sheetName) {
        return this.listAxisMetadata('row', sheetName);
    }
    setColumnMetadata(sheetName, start, count, size, hidden, geometry, filterHidden) {
        return this.setAxisMetadata('column', sheetName, start, count, size, hidden, geometry, filterHidden);
    }
    getColumnMetadata(sheetName, start, count) {
        return this.getAxisMetadata('column', sheetName, start, count);
    }
    listColumnMetadata(sheetName) {
        return this.listAxisMetadata('column', sheetName);
    }
    setAxisMetadata(axis, sheetName, start, count, size, hidden, geometry, filterHidden) {
        return this.options.axisEntryStore.setAxisMetadata(this.options.getOrCreateSheet(sheetName), axis, this.metadataForAxis(axis), sheetName, start, count, size, hidden, geometry, filterHidden);
    }
    getAxisMetadata(axis, sheetName, start, count) {
        const sheet = this.options.getSheet(sheetName);
        return sheet ? this.options.axisEntryStore.getAxisMetadataRecord(sheet, axis, sheetName, start, count) : undefined;
    }
    listAxisMetadata(axis, sheetName) {
        return this.options.axisEntryStore.listAxisMetadata(this.options.getSheet(sheetName), this.metadataForAxis(axis), sheetName, axis);
    }
    metadataForAxis(axis) {
        return axis === 'row' ? this.options.metadata.rowMetadata : this.options.metadata.columnMetadata;
    }
}
//# sourceMappingURL=workbook-axis-metadata-store.js.map