import { __exports as t } from "./index-LexicalHistoryPlugin.dev2.js";
import { __require as y } from "./index-LexicalComposerContext2.js";
import { __require as l } from "./index-LexicalHistory.js";
import _ from "react";
var a;
function q() {
  if (a) return t;
  a = 1;
  var n = y(), i = l(), o = _;
  function c(r, e, s = 1e3) {
    const u = o.useMemo(() => e || i.createEmptyHistoryState(), [e]);
    o.useEffect(() => i.registerHistory(r, u, s), [s, r, u]);
  }
  function m({
    externalHistoryState: r
  }) {
    const [e] = n.useLexicalComposerContext();
    return c(e, r), null;
  }
  return t.createEmptyHistoryState = i.createEmptyHistoryState, t.HistoryPlugin = m, t;
}
export {
  q as __require
};
