How to update YDoc by api on y-webosocket server side

I want to update YDoc by api on y-webosocket server side, but I can not find the shared type about the content? Is possible to push content at the end of YDoc by api ?.

/**
 * @param {string} docName
 * @param {string} content
 */
exports.pushToDocsService = function(docName, content) {
  const doc = getYDoc(docName)
}

Don’t use the share property. Use ydoc.getMap('config') if config is a map.