import { Range, Range2D, Point2D, Size } from './types'; /** * Returns a closure for mapping values from one 1D range to another linearly. Values outside the initial range may be * mapped too. * * @param initial the range from which the value originates. * @param final the range to which the value should be mapped. */ export declare function linearTransform(initial: Range, final: Range): (value: number) => number; /** * Returns a closure for mapping values from one 2D range to another linearly. Values outside the initial range may be * mapped too. * * @param initial the range from which the value originates. * @param final the range to which the value should be mapped. */ export declare function linearTransform2D(initial: Range2D, final: Range2D): (value: Point2D) => Point2D; /** * Creates a closure for scaling sizes. * @param original the original dimensions to which the input size is relative. * @param final the output dimensions to which the output size will be relative. */ export declare function sizeScale(original: Size, final: Size): (input: Size) => Size; /** * Creates a transform string for scaling an SVG object from one size to another. * @param original the original dimensions to which the input size is relative. * @param final the output dimensions to which the output size will be relative. */ export declare function svgSizeScale(original: Size, final: Size): string; /** * Converts a point to an SVG coordinate for use in path data. * @param point the point to convert. */ export declare function svgCoordinate(point: Point2D): string; /** * Calcuates the square of the euclidean distance between two points. * @param a the first point * @param b the second point */ export declare function euclideanDistanceSquared(a: Point2D, b: Point2D): number;