import { n as Format } from "./format-Dq02z5ZL.js"; import { t as PairedStrings } from "./strings-paired-D8e9LMVr.js"; import { CSSProperties, ReactNode } from "react"; //#region src/charts/dumbbell/index.d.ts interface DumbbellDatum { label?: string | undefined; from: number; to: number; } /** Percent-change clause for a pair (shared with the interactive entry). * `pctFmt` takes a FRACTION and must be a real percent formatter — the old * `${Math.round(x*100)}%` was an en-US percent, so `locale` reached every other * number on the chart but not this one. Unsigned: `dir` carries the sign. */ declare function pairChange(from: number, to: number, pctFmt?: (fraction: number) => string): { dir: "up" | "down"; pct: string; } | null; /** From/to + percent change; multi-row leads with the largest move. */ declare function dumbbellSummary(data: readonly DumbbellDatum[], fmt: (n: number) => string, strings: PairedStrings, pctFmt?: (fraction: number) => string): string; interface DumbbellProps { data: readonly DumbbellDatum[]; /** Index or label to accent. */ highlight?: number | string | undefined; /** Direction valence for CHANGES; drop it for ranges (no valence). */ positive?: "up" | "down" | undefined; /** `"value"` anchors from/to values outside the dots (drops when tight). */ label?: "value" | "none" | undefined; domain?: readonly [number, number] | undefined; width?: number | undefined; height?: number | undefined; color?: string | undefined; format?: Format | undefined; locale?: string | string[] | undefined; strings?: PairedStrings | undefined; /** Minimum in-chart label size, in viewBox units. Geometry sizes labels from * the mark and floors them at 7; this raises that floor and moves the * reserved gutter with it. A label the box cannot seat at the raised floor * drops rather than shrinking back under it. */ labelSize?: number | undefined; title?: string | undefined; summary?: string | false | undefined; id?: string | undefined; className?: string | undefined; style?: CSSProperties | undefined; children?: ReactNode | undefined; } declare function Dumbbell(props: DumbbellProps): ReactNode; //#endregion export { pairChange as a, dumbbellSummary as i, DumbbellDatum as n, DumbbellProps as r, Dumbbell as t };