import type PortalFolder from "../../portal/PortalFolder.js";
import type { AbortOptions } from "../../core/promiseUtils.js";

/** @since 5.0 */
export interface SaveAsOptions {
  /**
   * the folder where to save the item.
   *
   * @since 5.0
   */
  folder?: PortalFolder;
}

/**
 * Options for querying a single feature model.
 *
 * @since 5.1
 */
export interface QueryModelOptions extends AbortOptions {
  /**
   * Optional model format. If not specified, the source model is returned. Known possible formats include `dae`,
   * `dwg`, `fbx`, `glb`, `glt`, `ifc`, `obj`, `shapebuffer`, `shapebufferg`, `usd`, `usda`, `usdc` and `usdz`.
   * The formats supported by the service are listed in `capabilities.data.queryFormats` on the layer's
   * [capabilities](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/#capabilities).
   */
  format?: string;
}