function defaults(options) {
  options = options ? options : {};

  /** @type {Collection<import("./Control.js").default>} */
  const controls = new Collection();

  const zoomControl = options.zoom !== undefined ? options.zoom : true;
  if (zoomControl) {
    controls.push(new Zoom(options.zoomOptions));
  }

  const rotateControl = options.rotate !== undefined ? options.rotate : true;
  if (rotateControl) {
    controls.push(new Rotate(options.rotateOptions));
  }

  const attributionControl =
    options.attribution !== undefined ? options.attribution : true;
  if (attributionControl) {
    controls.push(new Attribution(options.attributionOptions));
  }

  return controls;
}
Set of controls included in maps by default. Unless configured otherwise,
this returns a collection containing an instance of each of the following
controls:
{@link module:ol/control/Zoom~Zoom}
{@link module:ol/control/Rotate~Rotate}
{@link module:ol/control/Attribution~Attribution}

@param {DefaultsOptions} [options] Options for the default controls.
@return {Collection<import("./Control.js").default>} A collection of controls
to be used with the {@link module:ol/Map~Map} constructor's `controls` option.
@api