function resolveEditorConfig(fieldConfig, registeredConfig) {
    if (null == fieldConfig) return registeredConfig;
    return {
        settings: {
            ...registeredConfig.settings,
            ...fieldConfig.settings,
            options: {
                ...registeredConfig.settings.options,
                ...fieldConfig.settings?.options
            }
        },
        lexical: fieldConfig.lexical ?? registeredConfig.lexical,
        extensions: fieldConfig.extensions ?? registeredConfig.extensions
    };
}
export { resolveEditorConfig };
