/* eslint-disable class-methods-use-this */
import 'pouchdb/dist/pouchdb.js';
import { get } from 'idb-keyval';
// import { IAuthorizationData, IHostRule, HostRuleKind, } from '@api-client/core/build/browser.js'; // Certificate, HttpProject
// import { ARCAuthData, HostRule as LegacyHostRule } from '@api-client/core/build/legacy.js'; // Normalizer, ARCProject, ARCSavedRequest, ARCCertificateIndex, ARCRequestCertificate,
// import { LegacyBodyProcessor } from './LegacyBodyProcessor.js';
// import { HistoryModel } from './HistoryModel.js';
// import { ProjectModel } from './ProjectModel.js';
// import { AuthDataModel } from './AuthDataModel.js';
// import { CertificateModel } from './CertificateModel.js';
// import { HostsModel } from './HostsModel.js';
const upgradeKey = 'CHL5v3fUMx';
/**
 * Version 18 data upgrade.
 *
 * This upgrade reads thr PouchDB data and moves it to own data store.
 *
 * This must be performed in the UI thread (or a worker of the UI thread)
 * so it has access to the same data store.
 */
export default class Arc18DataUpgrade {
    static async needsUpgrade() {
        const value = get(upgradeKey);
        return !value;
    }
    static async runIfNeeded() {
        // const needed = await Arc18DataUpgrade.needsUpgrade();
        // if (!needed) {
        //   return undefined;
        // }
        // const instance = new Arc18DataUpgrade();
        // return instance.run();
    }
}
//# sourceMappingURL=Arc18DataUpgrade.js.map