/** @jsxImportSource react */ import { Axis, AxisConfig, AxisInstance } from "./Axis"; import { RenderingContext } from "../../ui/RenderingContext"; import { Prop, StringProp } from "../../ui/Prop"; export interface TimeAxisConfig extends AxisConfig { /** Minimum value. */ min?: Prop; /** Maximum value. */ max?: Prop; /** Base CSS class to be applied to the element. Defaults to `timeaxis`. */ baseClass?: string; /** A number ranged between `0-2`. `0` means that the range is aligned with the lowest ticks. Default value is `1`, which means that the range is aligned with medium ticks. Use value `2` to align with major ticks. */ snapToTicks?: 0 | 1 | 2 | false; tickDivisions?: Record; minTickUnit?: string; /** Set to true to apply precise label distances from minLabelDistanceFormatOverride based on the resolved label format. */ useLabelDistanceFormatOverrides?: boolean; /** Mapping of formats to label distances, i.e. { "datetime;YYYYMM": 80 } */ minLabelDistanceFormatOverride?: Record; minLabelDistanceFormatOverrideDefaults?: Record; /** Axis labels format string override. */ format?: StringProp; /** Custom date decoder function. */ decode?: (date: string) => string; /** Size of a zone reserved for labels for both lower and upper end of the axis. */ deadZone?: number; /** Size of a zone reserved for labels near the lower end of the axis. */ lowerDeadZone?: number; /** Size of a zone reserved for labels near the upper (higher) end of the axis. */ upperDeadZone?: number; } export declare class TimeAxis extends Axis { deadZone: number; lowerDeadZone: number; upperDeadZone: number; snapToTicks: number | false; tickDivisions: Record; minTickUnit: string; useLabelDistanceFormatOverrides: boolean; minLabelDistanceFormatOverride: Record; minLabelDistanceFormatOverrideDefaults: Record; format: string; decode: TimeAxisConfig["decode"]; constructor(config: TimeAxisConfig); init(): void; declareData(...args: any[]): void; initInstance(context: RenderingContext, instance: AxisInstance): void; explore(context: RenderingContext, instance: AxisInstance): void; render(context: RenderingContext, instance: AxisInstance, key: string): React.ReactNode; } //# sourceMappingURL=TimeAxis.d.ts.map