import type { CmsEntryValues } from "./types.js"; import { EntryStore } from "./EntryStore.js"; class EntryStoreManager { private stores = new Map(); getStore(id: string): EntryStore { if (!this.stores.has(id)) { this.stores.set(id, new EntryStore()); } return this.stores.get(id)! as EntryStore; } removeStore(id: string) { this.stores.delete(id); } hasStore(id: string): boolean { return this.stores.has(id); } } export const entryStoreManager = new EntryStoreManager();