import type { ArrayVector2D } from "./types.js";
/**
 * Sets the magnitude (length) of a 2D vector, maintaining its direction.
 * @param {ArrayVector2D} xy - Vector as `[x, y]`
 * @param {number} newMag - New magnitude
 * @param {number} [m] - Optional current magnitude (default: `magnitude2D(xy)`)
 * @returns {ArrayVector2D} The adjusted vector
 */
export declare const setMagnitude2D: (xy: ArrayVector2D, newMag: number, m?: number) => ArrayVector2D;
