/** * Copyright 2014-present Palantir Technologies * @license MIT */ import * as d3 from "d3"; import { QuantitativeScale } from "./quantitativeScale"; export declare class Time extends QuantitativeScale { private _d3Scale; /** * A Time Scale maps Date objects to numbers. * * @constructor */ constructor(); /** * Returns an array of ticks values separated by the specified interval. * * @param {string} interval A string specifying the interval unit. * @param {number?} [step] The number of multiples of the interval between consecutive ticks. * @return {Date[]} */ tickInterval(interval: string, step?: number, useUTC?: boolean): Date[]; protected _setDomain(values: Date[]): void; protected _defaultExtent(): Date[]; protected _expandSingleValueDomain(singleValueDomain: Date[]): Date[]; scale(value: Date): number; scaleTransformation(value: number): number; invertedTransformation(value: number): number; getTransformationExtent(): [number, number]; getTransformationDomain(): [number, number]; setTransformationDomain([domainMin, domainMax]: [number, number]): void; protected _getDomain(): Date[]; protected _backingScaleDomain(): Date[]; protected _backingScaleDomain(values: Date[]): this; protected _getRange(): number[]; protected _setRange(values: number[]): void; invert(value: number): Date; defaultTicks(): Date[]; protected _niceDomain(domain: Date[]): Date[]; /** * Transforms the Plottable TimeInterval string into a d3 time interval equivalent. * If the provided TimeInterval is incorrect, the default is d3.timeYear */ static timeIntervalToD3Time(timeInterval: string, useUTC: boolean): d3.CountableTimeInterval; }