export interface AxisLabelFit { min: number; /** Half a label. */ lean: number; } /** * Read off the widest label the axis would print, at `xs`: 50px fits `Jan` but not `15 thg 9`. Two * numbers because end labels are anchored on the edges (`line_chart.css`) and each leans half a * label inward; one folded number thins a narrow card to one label. */ export declare function axisLabelFit(labels: readonly string[], gutter?: number): AxisLabelFit; /** * Exported because a slot geometry needs it twice — to pick labels and to widen a survivor — and * deriving it again drifts. The floor is one label: forcing a second onto a track that fits one * overlaps them. */ export declare function axisLabelStep(count: number, chartWidth: number, minLabelWidth?: number): number; /** * Empty only when `count <= 0`: an axis with positions always prints the last one. Whether the * track is measured is the caller's fact, since a host with no layout pass reports 0 like a 0px * track; one value meaning both once erased a narrow card's label row. */ export declare function axisLabelIndices(count: number, chartWidth: number, minLabelWidth?: number, /** * Zero is a slot geometry; above zero a point geometry, spanning the track by the gaps between * labels. */ lean?: number): number[];