import { n as Format } from "../../format-Dq02z5ZL.js"; import { t as PairedStrings } from "../../strings-paired-D8e9LMVr.js"; import { n as DumbbellDatum } from "../../index-C8j4aWTt2.js"; import { CSSProperties, ReactNode } from "react"; //#region src/charts/slope/index.d.ts type SlopeDatum = DumbbellDatum & { label: string; }; /** * Direction counts, led by the biggest mover. * * `fmt`/`pctFmt` are optional so the exported signature stays compatible, but * both entries pass them: without `fmt` the announced value was `String(n)`, * so a chart formatting "12.3K" on screen announced "12345.6"; without * `pctFmt` the ratio was an en-US percent, and `locale` reached every other * number on the chart but not that one (the fix Dumbbell already carries). */ declare function slopeSummary(data: readonly SlopeDatum[], strings: PairedStrings, fmt?: (n: number) => string, pctFmt?: (fraction: number) => string): string; interface SlopeProps { data: readonly SlopeDatum[]; /** Index or label to accent — the one-vs-field editorial read. */ highlight?: number | string | undefined; /** Direction valence; unset = neutral ink. */ positive?: "up" | "down" | undefined; /** `"none"` (default) | `"value"` | `"label"` | `"both"`. */ label?: "none" | "value" | "label" | "both" | 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 Slope(props: SlopeProps): ReactNode; //#endregion export { Slope, SlopeDatum, SlopeProps, slopeSummary };