/** Row keys whose values extend `Value`. Used to type key-based chart props. */ export type KeysOfType = { [Key in keyof Row]-?: Row[Key] extends Value ? Key : never; }[keyof Row] & string; /** Row keys that hold a measurement. `null` and `undefined` are missing values. */ export type NumericKey = KeysOfType; /** Row keys that hold text, such as category names. */ export type TextKey = KeysOfType; /** Row keys usable as an x position: labels, numbers, or dates. */ export type XKey = KeysOfType; /** Nullable time fields for observations whose endpoints may still be missing. */ export type TimeKey = KeysOfType; export type XKind = 'category' | 'number' | 'time'; export interface ResolvedX { kind: XKind; /** Plot position. Category labels are placed by input order. */ position: (row: Row) => number; format: (value: number) => string; } /** Infer the x kind from the first value, then build a position and a tick formatter. */ export declare function resolveX(data: readonly Row[], key: string, kind?: XKind, format?: (value: string | number | Date) => string): ResolvedX;