'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var api = require('./api.js');

/**
 * Returns the key-value `Storage` interface for the extension.
 * Uses `localStorage` and should persist across the buyer's current checkout session.
 * However, data persistence isn't guaranteed and storage is reset when the buyer starts a new checkout.
 *
 * Data is shared across all activated extension targets of this extension. In versions `<=2023-07`,
 * each activated extension target had its own storage.
 */
function useStorage() {
  return api.useApi().storage;
}

exports.useStorage = useStorage;
