import {
  parseBreakpointsInput
} from "../../state/modules/breakpoints";
import {
  configureStore,
  copyElementTree,
  getBreakpoints
} from "../../state/react-page";
class RuntimeCore {
  store;
  constructor({ breakpoints }) {
    this.store = configureStore({
      name: "Runtime store",
      preloadedState: null,
      breakpoints: breakpoints ? parseBreakpointsInput(breakpoints) : void 0
    });
  }
  copyElementTree(elementTree, replacementContext) {
    return copyElementTree(this.store.getState(), elementTree, replacementContext);
  }
  getBreakpoints() {
    return getBreakpoints(this.store.getState());
  }
}
export {
  RuntimeCore
};
//# sourceMappingURL=runtime-core.js.map