import type { KeyboardEvent, ReactNode } from 'react'; /** Axis tick label: compact (1.2K / 3M), tiny values in exponent form, never NaN. */ export declare function axisFmt(n: number): string; /** Tooltip value: exact up to 1e9 (grouped), compact beyond; `null` -> "no data". */ export declare function tipFmt(n: number | null | undefined): string; /** Left gutter wide enough for the widest y label (clamped so tiny containers keep a plot). */ export declare function gutterFor(labels: readonly string[], width: number, min?: number): number; /** Truncated x category label (full text stays in tooltip / aria). */ export declare const shortLabel: (s: string, max?: number) => string; /** Evenly sampled rows for the sr-only table + a trailing "more" row (cap = SrOnlyChartTable default). */ export declare function sampleRows(n: number, build: (i: number) => ReactNode[], cap?: number): ReactNode[][]; /** Arrow/Home/End navigation over `count` ordered marks for a focusable svg. */ export declare function indexKeys(count: number, current: number | null, set: (i: number | null) => void, step?: number): (e: KeyboardEvent) => void; /** Per-mark focusable/mouse handlers are only worth their cost below this many marks. */ export declare const MARK_CAP = 60; /** `niceScale` that can never return a degenerate / non-finite domain. */ export declare function safeScale(min: number, max: number, count?: number): { lo: number; hi: number; ticks: number[]; }; /** Plain-object view of a datum (null / primitives -> {}). */ export declare const rowOf: (d: unknown) => Record;