class ReportStoreService {
    reportDataStore;
    reportStore;
    constructor(reportDataStore) {
        this.reportDataStore = reportDataStore;
        this.reportStore = reportDataStore;
    }
    async getState(userId) {
        return this.reportStore.getUserConfig(userId);
    }
    async saveState(userId, userConfig) {
        await this.reportStore.setUserConfig(userId, userConfig);
    }
    findIndexByExecutionId(id, array) {
        return array.findIndex((report) => report.executionId === id);
    }
    findIndexByTableId(id, array) {
        return array.findIndex((report) => report.tableId === id);
    }
    findIndexByReportId(id, array) {
        return array.findIndex((report) => report.id === id);
    }
}

export { ReportStoreService, ReportStoreService as default };
//# sourceMappingURL=reportStoreService.js.map
