import { RevealBoundaryStore } from './RevealBoundryStore.js';
export class RevealStateManager {
    constructor() {
        this._currentHashId = 0;
        this._storage = [];
        this.newBoundary = () => {
            const hashId = this._currentHashId++;
            const store = new RevealBoundaryStore(hashId);
            this._storage.push(store);
            return store;
        };
        this.removeBoundary = (store) => {
            this._storage = this._storage.filter(x => x === store);
        };
    }
}
//# sourceMappingURL=RevealStateManager.js.map