import { c as Value, s as Polarity } from "./summary-D8UEQXYr.js"; import { n as Format } from "./format-Dq02z5ZL.js"; import { t as QuantileStrings } from "./strings-quantile-DZDgt6TO.js"; import { CSSProperties, ReactNode } from "react"; //#region src/charts/benchmark-strip/geometry.d.ts interface BenchmarkStripGeometry { /** Outer band (p5–95 or min–max) in viewBox x. */ outer: { x: number; width: number; }; /** Inner middle-half band (p25–75). */ inner: { x: number; width: number; }; median: { x: number; value: number; }; /** Focal dot; `clamped` ≠ 0 ⇒ value fell beyond the strip. */ dot: { x: number; value: number; clamped: -1 | 0 | 1; }; /** Empirical percentile of the focal value, 0–100 integer (mid-rank rule). */ percentile: number; /** Peer count (finite). */ n: number; /** All peers equal — bands collapse to one tick. */ flat: boolean; /** n < 8 forced the min–max fallback. */ smallN: boolean; /** Middle-half bounds (data space) for summaries/announces. */ p25: number; p75: number; /** The five quantile edges for interactive roving (name, x, value). */ edges: { name: string; x: number; value: number; }[]; bandY: number; bandH: number; labelX: number; labelY: number; totalWidth: number; } //#endregion //#region src/charts/benchmark-strip/index.d.ts declare function benchmarkSummary(geo: BenchmarkStripGeometry, fmt: (n: number) => string, strings: QuantileStrings): string; interface BenchmarkStripProps { /** Peer values. */ data: readonly Value[]; /** The focal reading. */ value: number; /** Outer band: `"p5p95"` (default) | `"minmax"` (small-n honesty). */ range?: "p5p95" | "minmax" | undefined; /** Center tick (default true). */ median?: boolean | undefined; /** What the right gutter states (default `"percentile"`). */ label?: "value" | "percentile" | "none" | undefined; /** Colors the focal dot by which side of the band is good. */ positive?: Polarity | undefined; domain?: readonly [number, number] | undefined; width?: number | undefined; height?: number | undefined; color?: string | undefined; format?: Format | undefined; locale?: string | string[] | undefined; strings?: QuantileStrings | 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; } /** * Characters the right-hand readout reserves. `p100` is the longest percentile, * so that branch is a fixed 4 and the box width holds still as the reading * moves. A `label="value"` readout is caller-scaled: reserved at 4, a formatted * `-1,234,567.89` ran back across the peer bands and painted over the focal * dot. Exported so the interactive entry's viewBox can't drift from the * static's — both entries must reserve the same gutter or hover lands off-mark. */ declare function benchmarkGutterCh(label: BenchmarkStripProps["label"], value: number, fmt: (n: number) => string): number; declare function BenchmarkStrip(props: BenchmarkStripProps): ReactNode; //#endregion export { benchmarkSummary as i, BenchmarkStripProps as n, benchmarkGutterCh as r, BenchmarkStrip as t };