import { inlineImageVisitor } from "./field/extensions/inline-image/populate.js";
import { linkVisitor } from "./field/extensions/link/populate.js";
import { runLexicalPopulate } from "./field/lexical-populate-shared.js";
function lexicalEditorServer(options) {
    const visitors = options.visitors ?? [
        inlineImageVisitor,
        linkVisitor
    ];
    return async (ctx)=>{
        await runLexicalPopulate({
            client: options.getClient(),
            readContext: ctx.readContext,
            visitors,
            values: [
                ctx.value
            ]
        });
    };
}
export { defaultEditorConfig } from "./field/config/default.js";
export { inlineImageVisitor, lexicalEditorServer, linkVisitor };
