function writeLineStringGeometry(lineString, options) {
  const hasZM = getHasZM(lineString);
  return {
    hasZ: hasZM.hasZ,
    hasM: hasZM.hasM,
    paths: [
      /** @type {Array<EsriJSONPosition>} */ (lineString.getCoordinates()),
    ],
  };
}
@param {import("../geom/LineString.js").default} lineString Geometry.
@param {import("./Feature.js").WriteOptions} [options] Write options.
@return {EsriJSONPolyline} EsriJSON geometry.