/**
 * Extract default units from map of view.
 *
 * @experimental
 * @internal
 */
import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js";

/**
 * Extracts the default unit preferences defined the portal instance
 * of a webmap/webscene used in a a view.
 *
 * @param view
 * @experimental
 * @internal
 */
export function getDefaultUnitForView(view: MapViewOrSceneView): "imperial" | "metric";