import type { Unit } from "../../core/units.js";

/**
 * Helper function to convert a quantity of a source unit to a quantity of a destination unit.
 *
 * @param quantity
 * @param srcUnit
 * @param destUnit
 * @returns The converted quantity based on the destination unit.
 * @experimental
 * @internal
 */
export function convertUnit(quantity: number, srcUnit: Unit, destUnit: Unit): number;