import { Range, Point2D, Range2D, Selection2D } from './types'; /** * Returns a copy of the input range, with the start and end flipped if the input's start is greater than the input's * end. * @param range the input range. */ export declare function forwardRange(range: Range): Range; /** * Returns a closure for checking whether points fall within the specified 2D range. * @param range the range to check. */ export declare function inRange2D(range: Range2D): (point: Point2D) => boolean; /** * Converts a selection in 2D to a range in 2D. * @param member the selection to convert. */ export declare function selection2DToRange2D(selection: Selection2D): Range2D; /** * Divides an input range into a reasonable number of ticks for visual display on an axis. * @param domain the input range to divide. * @param cScale used in recursion only; adjusts the tick resolution. */ export declare function autoTicks(domain: Range, cScale?: number): number[]; /** * Expands the width of the range by a given factor. * @param domain the range to expand. * @param factor the percentage by which to expand the range; for example, 0.1 adds 10% of the range width to each side. */ export declare function expandRange(domain: Range, factor: number): Range; /** * Expands the width of the range by a given factor, then rounds the starts and ends to the nearest integer. * @param domain the range to expand. * @param factor the percentage by which to expand the range; for example, 0.1 adds 10% of the range width to each side. */ export declare function expandRangeI(domain: Range, factor: number): Range;