"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PIN_PREFIX = exports.OBJECT_PREFIX = exports.DEFAULT_PIN = void 0;
exports.isLocalDatastoreKey = isLocalDatastoreKey;
/**
 * @flow
 * @private
 */

const DEFAULT_PIN = '_default';
exports.DEFAULT_PIN = DEFAULT_PIN;
const PIN_PREFIX = 'parsePin_';
exports.PIN_PREFIX = PIN_PREFIX;
const OBJECT_PREFIX = 'Parse_LDS_';
exports.OBJECT_PREFIX = OBJECT_PREFIX;
function isLocalDatastoreKey(key /*: string*/) /*: boolean*/{
  return !!(key && (key === DEFAULT_PIN || key.startsWith(PIN_PREFIX) || key.startsWith(OBJECT_PREFIX)));
}