import { type Format } from './formats'; import { type AxisScale, type FieldInstance, type Row, type TimeUnit, type Value } from './types'; /** Milliseconds since the epoch for a Date, an ISO string or a number. NaN for null or anything unreadable. */ export declare function timeValue(raw: unknown): number; /** The number a continuous field places a record at. NaN when the record has no value. */ export declare function positionValue(field: FieldInstance, record: Row): number; /** The time a time field stands for, with the field's own offset applied. */ export declare function fieldTime(field: FieldInstance, raw: unknown): number; /** The name of the calendar period that starts at `ms`, such as 2024, 2024 Q3 or 2024-07. The same in every language. */ export declare function formatPeriod(ms: number, unit: TimeUnit): string; /** * What a member of a discrete field is called. A member of a time field is named after its * period, or written as a moment when the field has no unit; a bin is written as its range. */ export declare function memberLabel(field: FieldInstance | undefined, value: Value, format?: Format): string; /** Calendar ticks for a time range. The domain stays the data range, like tickScale. */ export declare function timeScale(min: number, max: number, pixels: number, gap: number, format?: Format): AxisScale;