import { r as SummaryStrings, s as Polarity } from "./summary-D8UEQXYr.js"; import { n as Format } from "./format-Dq02z5ZL.js"; import { CSSProperties, ReactNode } from "react"; //#region src/core/strings-freq.d.ts type FreqStrings = Pick; //#endregion //#region src/charts/icon-array/geometry.d.ts type IconArrayN = 10 | 20 | 100; interface IconArrayGeometry { units: { x: number; y: number; filled: boolean; index: number; }[]; cell: number; rx: number; crisp: boolean; k: number; n: IconArrayN; cols: number; rows: number; /** "normal" | "none" (k=0) | "all" (k=n) | "sub" (rate>0 but rounds to 0). */ note: "normal" | "none" | "all" | "sub"; labelX: number; labelY: number; totalWidth: number; /** Top of the unit grid. The grid is centred in the box and capped at an * 8-unit cell, so on a tall chart it floats well inside the viewBox — the * seat has to follow the grid, not the box. */ y0: number; /** Bottom of the unit grid. */ y1: number; } //#endregion //#region src/charts/icon-array/index.d.ts declare function iconArraySummary(geo: IconArrayGeometry, pctFmt: (n: number) => string, strings: FreqStrings): string; interface IconArrayProps { /** The rate, 0–1 (rounded to the nearest whole unit of `total`). */ value: number; /** Denominator / grid size (default 20). */ total?: IconArrayN | undefined; /** `"ratio"` (default, "3 in 20") | `"percent"` | `"none"`. */ label?: "ratio" | "percent" | "none" | undefined; /** Shared cell vocabulary. */ shape?: "square" | "round" | "dot" | undefined; /** Polarity — `"down"` (fewer is better) flips the fill color to the risk tone. */ positive?: Polarity | undefined; width?: number | undefined; height?: number | undefined; color?: string | undefined; /** Number formatting for the `"percent"` label. Replaces the percent style * rather than extending it, like every other `format` in the catalog — pass * `{ style: "percent", maximumFractionDigits: 1 }` to keep the sign. */ format?: Format | undefined; locale?: string | string[] | undefined; strings?: FreqStrings | 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 IconArray(props: IconArrayProps): ReactNode; //#endregion export { FreqStrings as i, IconArrayProps as n, iconArraySummary as r, IconArray as t };