import { StateEffect as o, StateField as r } from "@codemirror/state";
const n = o.define(), c = o.define(), s = r.define({
  create: () => 0,
  update: (t, f) => {
    for (const e of f.effects)
      if (e.is(n))
        return e.value;
    return t;
  }
}), d = r.define({
  create: () => "",
  update: (t, f) => {
    for (const e of f.effects)
      if (e.is(c))
        return e.value;
    return t;
  }
});
export {
  s as PromptLineField,
  d as PromptSymbolField,
  n as setPromptLineEffect,
  c as setPromptSymbolEffect
};
//# sourceMappingURL=state.js.map
