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-tree.d.ts type TreeStrings = Pick; //#endregion //#region src/charts/tree-rings/index.d.ts interface TreeRingsProps { data: readonly number[]; /** Which period's ring to pick out: `last` (default), `none`, or an index. */ highlight?: "last" | "none" | number | undefined; /** Expected lifetime Σ — the disc fills only Σdata/total of the radius. */ total?: number | undefined; /** `stroke` boundary rings (default) or `fill` alternating annuli. */ rings?: "stroke" | "fill" | undefined; /** Print the latest period's value at the outer edge. */ label?: "none" | "last" | undefined; /** Singular period noun for the summary (default "period"). */ periodWord?: string | undefined; /** Plural period noun (default "periods"). */ unit?: string | undefined; color?: string | undefined; size?: number | undefined; fontSize?: number | undefined; format?: Format | undefined; locale?: string | string[] | undefined; strings?: TreeStrings | 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; } /** * The static's viewBox width: the disc plus the right gutter the `label="last"` * readout sits in. Exported because the interactive entry must scale pointer x * by this same total — using bare `size` compresses the pointer space and * mis-resolves the radial ring lookup around the disc's centre. */ declare function treeRingsWidth(opts: { data: readonly number[]; size: number; label: "none" | "last"; fontSize?: number | undefined; labelSize?: number | undefined; fmt: (n: number) => string; }): number; declare function treeRingsSummary(data: readonly number[], opts?: { unit?: string | undefined; periodWord?: string | undefined; strings?: TreeStrings | undefined; format?: Format | undefined; locale?: string | string[] | undefined; }): string; declare function TreeRings(props: TreeRingsProps): ReactNode; //#endregion export { TreeStrings as a, treeRingsWidth as i, TreeRingsProps as n, treeRingsSummary as r, TreeRings as t };