UNPKG

@ministryofjustice/hmpps-digital-prison-reporting-frontend

Version:

The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.

18 lines (15 loc) 873 B
import { ReportDataStore } from '../data/reportDataStore.js'; import { UserReportData } from '../types/UserReports.js'; import { ReportStoreConfig } from '../types/ReportStore.js'; declare class ReportStoreService { readonly reportDataStore: ReportDataStore; reportStore: ReportDataStore; constructor(reportDataStore: ReportDataStore); getState(userId: string): Promise<ReportStoreConfig>; saveState(userId: string, userConfig: ReportStoreConfig): Promise<void>; findIndexByExecutionId(executionId: string, array: UserReportData[]): number; findIndexByTableId(tableId: string, array: UserReportData[]): number; findIndexByReportId(id: string, array: UserReportData[]): number; findIndexByReportAndVariantId(id: string, reportId: string, array: UserReportData[]): number; } export { ReportStoreService, ReportStoreService as default };