import { n as Format } from "./format-Dq02z5ZL.js"; import { n as MiniBarDatum } from "./index-CgMum0ZL.js"; import { t as CompositionStrings } from "./strings-composition-d0S4LmjA.js"; import { CSSProperties, ReactNode } from "react"; //#region src/charts/segmented-bar/geometry.d.ts interface RolledDatum { label: string; value: number; /** Number of source categories merged into this entry (1 = passthrough). */ members: number; } //#endregion //#region src/charts/segmented-bar/index.d.ts type SegmentedBarDatum = MiniBarDatum; /** Shared composition summary — largest-remainder percents, joined clauses. */ declare function sharesSummary(rolled: readonly RolledDatum[], strings: CompositionStrings, /** Percent formatter (FRACTION in) — the largest-remainder integers still sum * to 100, they just stop being spelled out as an en-US percent. */ pct?: (fraction: number) => string): string; interface SegmentedBarProps { data: readonly SegmentedBarDatum[]; /** Rollup threshold (legibility-derived; the rollup keeps honesty). */ maxSegments?: number | undefined; /** `"data"` preserves inherent sequences; `"desc"` ranks the composition. */ order?: "data" | "desc" | undefined; /** `"percent"` (default) | `"value"` centered per segment (deterministic drop-out). */ label?: "none" | "percent" | "value" | undefined; /** Per-segment colours, cycled; overrides `--mc-cat-N` for this instance. The * rolled-up "Other" segment stays neutral. */ colors?: readonly string[] | undefined; width?: number | undefined; height?: number | undefined; format?: Format | undefined; locale?: string | string[] | undefined; strings?: CompositionStrings | 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 SegmentedBar(props: SegmentedBarProps): ReactNode; //#endregion export { sharesSummary as i, SegmentedBarDatum as n, SegmentedBarProps as r, SegmentedBar as t };