import { Vector } from './Vector'; /** A helper for building vectors efficiently. */ export declare class VectorBuilder { /** Creates a new vector builder starting from a vector. */ fromVector(v: Vector): VectorBuilder; /** The x coordinate. */ x: number; /** The y coordinate. */ y: number; /** Constructs a new vector builder starting from x and y coordinates. */ constructor(x: number, y: number); /** Adds the given vector to the vector being built. */ add(v: Vector): this; /** Subtracts the given vector to the vector being built. */ sub(v: Vector): this; /** * Scales the coordinates of the vector being built by the given x and y factors. * If only one factor is given, it is used for both coordinates. */ scaleBy(kx: number, ky?: number): this; /** Returns the built vector. */ vector(): Vector; }