import { ReactElement, ReactNode } from 'react'; import { L as LegendVariant, T as TooltipVariant } from './ChartContainer-D2SxVX55.js'; import { PlotSeries, SeriesTone } from '@axicharts/charts-canvas'; import { ValueFormat, BuiltinTickFormat } from '@axicharts/charts-core'; type PlotRect = { x: number; y: number; width: number; height: number; }; type ChartScales = { width: number; height: number; plot: PlotRect; categories: string[]; yMin: number; yMax: number; xAt: (index: number) => number; yAt: (value: number) => number; linePath: (values: number[]) => string; areaPath: (values: number[]) => string; }; declare function buildChartScales({ width, height, categories, yMin, yMax, }: { width: number; height: number; categories: string[]; yMin: number; yMax: number; }): ChartScales; /** * Plot coordinate helpers for static SVG cartesian charts. * Only available inside `renderPath` / `renderBar` callbacks (static mode). */ declare function useChartScales(): ChartScales; type PathRenderContext = ChartScales & { series: PlotSeries; seriesIndex: number; color: string; fill: boolean; defaultPath: string; }; type BarRenderContext = ChartScales & { series: PlotSeries; seriesIndex: number; categoryIndex: number; category: string; value: number; color: string; bar: { x: number; y: number; width: number; height: number; }; }; type PathRenderFn = (ctx: PathRenderContext) => ReactElement; type BarRenderFn = (ctx: BarRenderContext) => ReactElement; type CartesianPlotSeries = PlotSeries & { /** Static SVG only — custom path renderer for line/area marks. */ renderPath?: PathRenderFn; /** Static SVG only — custom bar renderer for bar marks. */ renderBar?: BarRenderFn; }; type LineMarkProps = { dataKey: string; name?: string; tone?: SeriesTone; yAxisId?: string; /** Recharts parity — `monotone` smooth curves, `linear` point-to-point. */ type?: "linear" | "monotone"; /** * Static SVG only — replace the default `` for this series. * Ignored on canvas/uPlot renderers. */ renderPath?: PathRenderFn; /** `` children — per-point colors, read by the cartesian composers. */ children?: ReactNode; }; type BarMarkProps = Omit & { /** * Static SVG only — replace the default `` for each bar in this series. * Ignored on canvas/uPlot renderers. */ renderBar?: BarRenderFn; }; type AreaMarkProps = LineMarkProps; type XAxisMarkProps = { dataKey: string; tickFormat?: BuiltinTickFormat; }; type YAxisMarkProps = { /** Built-in / registered format id or function — formats ticks, tooltips and value labels. */ tickFormat?: ValueFormat; orientation?: "left" | "right"; yAxisId?: string; }; type GridMarkProps = { horizontal?: boolean; vertical?: boolean; }; type TooltipMarkProps = { /** Tooltip chrome variant for this chart (overrides the container's). */ variant?: TooltipVariant; /** Hide the tooltip for this chart. */ hidden?: boolean; /** Tooltip value format (overrides the chart's `valueFormat` for tooltips only). */ formatter?: ValueFormat; }; type LegendMarkProps = { /** Legend variant for this chart (overrides the container's). */ variant?: LegendVariant; /** Hide the legend for this chart. */ hidden?: boolean; }; type PieMarkProps = { dataKey?: string; nameKey?: string; innerRadius?: number; showLabels?: boolean; children?: ReactNode; }; type CellMarkProps = { dataKey: string; tone?: SeriesTone; /** Explicit stroke/fill color (Recharts `fill` alias supported). */ color?: string; fill?: string; /** Bar width fraction (0–1) or point radius in px. */ size?: number; radius?: number; }; type FunnelMarkProps = { dataKey?: string; nameKey?: string; sort?: "ascending" | "descending" | "none"; }; type AnnotationLabelMarkProps = { text: string; x?: number | string; y: number; tone?: SeriesTone; position?: "top" | "bottom" | "left" | "right" | "center"; id?: string; }; type AnnotationBandMarkProps = { min: number; max: number; label?: string; tone?: SeriesTone; id?: string; }; type AnnotationLineMarkProps = { value: number; label?: string; tone?: SeriesTone; orientation?: "horizontal" | "vertical"; x?: number | string; id?: string; }; type AnnotationMarkerMarkProps = { x?: number | string; y: number; label?: string; tone?: SeriesTone; draggable?: boolean; id?: string; }; /** Overlay reference line — alias for agent/human block API (RFC-002). */ type RuleMarkProps = AnnotationLineMarkProps; /** Overlay threshold band — alias for agent/human block API (RFC-002). */ type BandMarkProps = AnnotationBandMarkProps; declare function lineMark(_props: LineMarkProps): null; declare function barMark(_props: BarMarkProps): null; declare function areaMark(_props: AreaMarkProps): null; declare function xAxisMark(_props: XAxisMarkProps): null; declare function yAxisMark(_props: YAxisMarkProps): null; declare function gridMark(_props: GridMarkProps): null; declare function tooltipMark(_props: TooltipMarkProps): null; declare function legendMark(_props: LegendMarkProps): null; declare function pieMark(_props: PieMarkProps): null; declare function cellMark(_props: CellMarkProps): null; declare function funnelMark(_props: FunnelMarkProps): null; declare function annotationLabelMark(_props: AnnotationLabelMarkProps): null; declare function annotationBandMark(_props: AnnotationBandMarkProps): null; declare function annotationLineMark(_props: AnnotationLineMarkProps): null; declare function annotationMarkerMark(_props: AnnotationMarkerMarkProps): null; declare function ruleMark(_props: RuleMarkProps): null; declare function bandMark(_props: BandMarkProps): null; declare const Line: typeof lineMark & { markKind: "line"; }; declare const Bar: typeof barMark & { markKind: "bar"; }; declare const Area: typeof areaMark & { markKind: "area"; }; declare const XAxis: typeof xAxisMark & { markKind: "xAxis"; }; declare const YAxis: typeof yAxisMark & { markKind: "yAxis"; }; declare const Grid: typeof gridMark & { markKind: "grid"; }; declare const Tooltip: typeof tooltipMark & { markKind: "tooltip"; }; declare const Legend: typeof legendMark & { markKind: "legend"; }; declare const Pie: typeof pieMark & { markKind: "pie"; }; declare const Cell: typeof cellMark & { markKind: "cell"; }; declare const Funnel: typeof funnelMark & { markKind: "funnel"; }; declare const AnnotationLabel: typeof annotationLabelMark & { markKind: "annotationLabel"; }; declare const AnnotationBand: typeof annotationBandMark & { markKind: "annotationBand"; }; declare const AnnotationLine: typeof annotationLineMark & { markKind: "annotationLine"; }; declare const AnnotationMarker: typeof annotationMarkerMark & { markKind: "annotationMarker"; }; declare const Rule: typeof ruleMark & { markKind: "rule"; }; declare const Band: typeof bandMark & { markKind: "band"; }; /** Recharts-style alias for `XAxis`. */ declare const X: typeof xAxisMark & { markKind: "xAxis"; }; /** Recharts-style alias for `YAxis`. */ declare const Y: typeof yAxisMark & { markKind: "yAxis"; }; type ComposableMarkKind = typeof Line.markKind | typeof Bar.markKind | typeof Area.markKind | typeof XAxis.markKind | typeof YAxis.markKind | typeof Grid.markKind | typeof Tooltip.markKind | typeof Legend.markKind | typeof Pie.markKind | typeof Cell.markKind | typeof Funnel.markKind | typeof AnnotationLabel.markKind | typeof AnnotationBand.markKind | typeof AnnotationLine.markKind | typeof AnnotationMarker.markKind | typeof Rule.markKind | typeof Band.markKind; export { AnnotationBand as A, Band as B, type CartesianPlotSeries as C, type PieMarkProps as D, Funnel as F, Grid as G, Legend as L, type PathRenderContext as P, Rule as R, Tooltip as T, X, Y, AnnotationLabel as a, AnnotationLine as b, AnnotationMarker as c, Area as d, type AreaMarkProps as e, type BandMarkProps as f, Bar as g, type BarMarkProps as h, type BarRenderContext as i, type BarRenderFn as j, Cell as k, type CellMarkProps as l, type ChartScales as m, Line as n, type LineMarkProps as o, type PathRenderFn as p, type RuleMarkProps as q, XAxis as r, type XAxisMarkProps as s, YAxis as t, type YAxisMarkProps as u, buildChartScales as v, useChartScales as w, type ComposableMarkKind as x, type FunnelMarkProps as y, Pie as z };