import { StoragePlugin } from './storage.js';
export class LocalStoragePlugin extends StoragePlugin {
    read(key) {
        const value = localStorage.getItem(key);
        if (!value) {
            return Promise.resolve();
        }
        const app = JSON.parse(value);
        return Promise.resolve(app);
    }
    write(key, value) {
        localStorage.setItem(key, JSON.stringify(value));
        return Promise.resolve();
    }
}
export default LocalStoragePlugin;
//# sourceMappingURL=local-storage.js.map