import { c as Value } 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/graded-band/geometry.d.ts interface GradedBandLevel { p: number; /** viewBox x + width. */ x: number; width: number; /** Data-space bounds (summaries/announces). */ lo: number; hi: number; /** 0 = widest/faintest … k-1 = narrowest/strongest (z + opacity). */ step: number; } interface GradedBandGeometry { /** Widest first (draw order). */ bands: GradedBandLevel[]; median: { x: number; value: number; }; dot: { x: number; value: number; } | null; bandY: number; bandH: number; /** All draws equal → render the median tick only. */ degenerate: boolean; labelX: number; labelY: number; totalWidth: number; } //#endregion //#region src/charts/graded-band/index.d.ts declare function gradedBandSummary(geo: GradedBandGeometry, fmt: (n: number) => string, strings: QuantileStrings, /** * Formatter for the interval LEVEL (a percent), separate from `fmt` (the * value). The strings bundle used to receive the level as a bare number and * bake `%` into its own template, which made the level the one number on this * chart that a `locale` could not reach — and left the announcement and the * visible chip disagreeing once the chip started formatting properly. * Defaults to the host locale so existing callers keep working. */ levelFmt?: (fraction: number) => string): string; interface GradedBandProps { /** Sample / posterior draws for one estimate. */ data: readonly Value[]; /** 1–3 nested central intervals (default `[50, 80, 95]`). */ levels?: readonly number[] | undefined; /** Observed/point value overlaid as a dot (distinct shape from the median tick). */ value?: number | undefined; /** Fade past the outermost band instead of a hard cut ("this is approximate"). */ softEdge?: boolean | undefined; /** `"median"` states the median in a right gutter. */ label?: "median" | "none" | 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; } declare function GradedBand(props: GradedBandProps): ReactNode; //#endregion export { GradedBandProps as n, gradedBandSummary as r, GradedBand as t };