import { c as Value, i as describeSeries, r as SummaryStrings, s as Polarity, t as DescribeOptions } from "./summary-D8UEQXYr.js"; import { n as Format, r as makeFormatter } from "./format-Dq02z5ZL.js"; import { CSSProperties, ReactNode } from "react"; //#region src/core/strings.d.ts declare const EN: SummaryStrings; //#endregion //#region src/shared/MicroProvider.d.ts /** Built-in presets (token bundles in styles.css). `modern` is the default. * `print` + `eink` are output-context bundles (paper, grayscale e-paper). */ type Preset = "modern" | "editorial" | "mono" | "vivid" | "dark" | "print" | "eink"; interface MicroProviderProps { theme?: Preset; /** One-off token overrides, e.g. `{ '--mc-accent': '#f50' }`. */ tokens?: Record<`--mc-${string}`, string | number>; className?: string; style?: CSSProperties; children?: ReactNode; } declare function MicroProvider(props: MicroProviderProps): ReactNode; //#endregion //#region src/shared/Chart.d.ts /** Inline (`.mc-inline`) baseline seat — viewBox coords from the top; plot box only, never data bbox (values would bob). */ interface Seat { /** `"floor"`: baseline anchor; `"center"`: cap-band centre for symmetric glyphs. */ mode: "floor" | "center"; /** Topmost edge of the plot box. Only read in `"center"` mode. */ top?: number | undefined; /** Bottommost edge of the plot box. */ bottom: number; } interface ChartProps { /** viewBox width/height in integer units. */ width: number; height: number; /** Short accessible name. */ title?: string | undefined; /** * Accessible description — usually `describeSeries(.)`. * `false` = decorative (T0): the chart is hidden from assistive tech. */ summary?: string | false | undefined; /** Stable id root — opts into /<desc> + aria-labelledby naming. */ id?: string | undefined; /** * Where this mark sits on a line of text when rendered inline. Omitted = * the legacy baseline seat (viewBox bottom edge on the baseline). */ seat?: Seat | undefined; className?: string | undefined; style?: CSSProperties | undefined; /** SVG content: paths, marks, annotation children. */ children?: ReactNode; } declare function Chart(props: ChartProps): ReactNode; //#endregion //#region src/shared/SparkGroup.d.ts interface SparkGroupProps { /** `"shared"` (union of all children, default) or an explicit `[min, max]`. */ domain?: "shared" | readonly [number, number]; /** One physical size enforced on every child. */ width?: number; height?: number; /** Zero-anchor the shared domain (for bar/area groups). */ zero?: boolean; className?: string; style?: CSSProperties; children?: ReactNode; } declare function SparkGroup(props: SparkGroupProps): ReactNode; //#endregion //#region src/index.d.ts /** * @microcharts/react — public root barrel. * * Charts are consumed via per-component subpaths (added in Phase 2), e.g. * import { Sparkline } from '@microcharts/react/sparkline' * The root barrel carries only the shared grammar types and metadata, so * importing it never pulls chart code into a bundle. */ /** The published package version, injected from package.json at build time. */ declare const MICROCHARTS_VERSION: string; /** * Shared prop grammar — one meaning per name (`grammar-conformance.test.ts`). */ interface MicrochartCommonProps { /** The series. `null`/`NaN` are gaps; `data` alone always renders. Charts with * a structured input (points, segments, events) document their own shape. */ data: readonly (number | null)[]; /** Fixed value domain `[min, max]`; auto-fit when omitted. */ domain?: readonly [number, number]; /** Mark colour: any CSS colour or token string (`"var(--mc-accent)"`). */ color?: string; /** Names the chart: an SVG `<title>` (accessible name + native tooltip), not visible text. */ title?: string; /** Accessible name. A string overrides the auto-summary; `false` = decorative. */ summary?: string | false; /** Stable id root — opts into `<title>`/`<desc>` + `aria-labelledby` naming. */ id?: string; /** Class on the chart root. */ className?: string; /** Inline style on the chart root (a common place to set width/height). */ style?: CSSProperties; } //#endregion export { Chart, type ChartProps, type DescribeOptions, EN, type Format, MICROCHARTS_VERSION, MicroProvider, type MicroProviderProps, MicrochartCommonProps, type Polarity, type Preset, SparkGroup, type SparkGroupProps, type SummaryStrings, type Value, describeSeries, makeFormatter };