"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createStateAdapter = createStateAdapter;
const default_state_adapter_1 = require("./adapters/default-state-adapter");
const memory_state_adapter_1 = require("./adapters/memory-state-adapter");
function createStateAdapter(config) {
    return config.adapter === 'default' ? new default_state_adapter_1.FileStateAdapter(config) : new memory_state_adapter_1.MemoryStateAdapter();
}
