import { r as SummaryStrings } from "./summary-D8UEQXYr.js"; import { n as Format } from "./format-Dq02z5ZL.js"; import { CSSProperties, ReactNode } from "react"; //#region src/core/strings-ab.d.ts type ABStrings = Pick; //#endregion //#region src/charts/ab-strips/geometry.d.ts interface StripRow { y: number; /** p5–p95 (or min–max for small n). */ outer: { x: number; width: number; }; /** p25–p75 (the middle half). */ inner: { x: number; width: number; }; median: { x: number; value: number; }; /** All five quantile edges (p5/25/50/75/95) — interactive stops. */ edges: { p: number; x: number; value: number; }[]; /** n < 8 → outer is min–max, not p5–p95. */ small: boolean; } interface ABStripsGeometry { rows: [StripRow, StripRow]; aMedian: number; bMedian: number; /** b − a median, signed, 2-dp. */ deltaMedian: number; /** p25–75 overlap as a fraction of the smaller middle half, 0–1, 2-dp. */ overlap: number; na: number; nb: number; labelX: number; totalWidth: number; } //#endregion //#region src/charts/ab-strips/index.d.ts /** Signed percent (or absolute when the base is 0) delta of B vs A. * `pct` takes a FRACTION and is the chart's percent formatter — a literal * `${n}%` would leave the delta in en-US while `locale` localized every other * number here. `withPlus` supplies the leading `+`, and skips it when the * formatter already emitted a sign. */ declare function abDelta(geo: ABStripsGeometry, fmt: (n: number) => string, pct?: (fraction: number) => string): string; declare function abSummary(geo: ABStripsGeometry, fmt: (n: number) => string, seriesLabels: readonly [string, string], strings: ABStrings, pct?: (fraction: number) => string): string; interface ABStripsProps { /** The two arms. */ data: { a: readonly number[]; b: readonly number[]; }; /** Row identities for gutter tags + summary (default ["A", "B"]). */ seriesLabels?: readonly [string, string] | undefined; /** Which direction of the B−A delta reads as good (colors the delta label). */ positive?: "up" | "down" | undefined; /** `"delta"` (default) states the signed median delta in a gutter. */ label?: "delta" | "none" | undefined; domain?: readonly [number, number] | undefined; width?: number | undefined; height?: number | undefined; color?: string | undefined; format?: Format | undefined; locale?: string | string[] | undefined; strings?: ABStrings | 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 ABStrips(props: ABStripsProps): ReactNode; //#endregion export { ABStrings as a, abSummary as i, ABStripsProps as n, abDelta as r, ABStrips as t };