import { PropertyMapper } from "../core/_internal/PropertyMapper";
import { getPropertyMap } from "./_internal/getPropertyMap";
import { computeProps } from "./_internal/computeProps";
/**
 * Converts an Imodel to a Hub editable content object
 *
 * @param model IModel to convert
 * @param requestOptions
 * @param enrichments  hash of enrichments to apply to the content
 */
export function modelToHubEditableContent(model, requestOptions, enrichments, content = {}) {
    const mapper = new PropertyMapper(getPropertyMap());
    const updatedContent = mapper.storeToEntity(model, content);
    return computeProps(model, updatedContent, requestOptions, enrichments);
}
//# sourceMappingURL=modelToHubEditableContent.js.map