import { ReactElement, ReactNode } from 'react'; import { d as ChartDataState, C as ChartConfig } from './ChartContainer-D2SxVX55.js'; import { ValueFormat, YDomain, RendererPreference } from '@axicharts/charts-core'; import { ComboSeries, DualAxisMode, ReferenceLine, ThresholdBand, ChartAnnotation, ChartGraphicElement, PlotSeries } from '@axicharts/charts-canvas'; import * as _axicharts_charts_theme from '@axicharts/charts-theme'; import { LineCurve, ChartTheme } from '@axicharts/charts-theme'; import { f as ChartAnimate, L as LiveAnimate } from './types-he-wcyye.js'; import { M as MarkerDragEndEvent } from './cartesianPointerChartProps-Dq1qH5v4.js'; import { ScatterSeries } from '@axicharts/charts-echarts'; import { B as BrushRange } from './useEChartsInteraction-BkrSAqYb.js'; import { C as CartesianPlotSeries, x as ComposableMarkKind } from './marks-Day7cHDY.js'; type ChartStateOverlayProps = { state: Exclude; message?: string; dark?: boolean; }; declare function ChartStateOverlay({ state, message, dark, }: ChartStateOverlayProps): ReactElement; declare function StaleBadge(): ReactElement; declare function useIsStale(lastUpdatedAt: number | undefined, staleAfterMs: number | undefined, enabled: boolean): boolean; type CartesianChartProps = { /** Row-oriented data for composable children (``, …). */ data?: Record[]; children?: ReactNode; /** Imperative categories (compile / eject imperative style). */ categories?: string[]; /** Imperative combo series (compile / eject imperative style). */ series?: ComboSeries[]; fill?: boolean; showAxes?: boolean; showValues?: boolean; valueSuffix?: string; /** Format for value-axis ticks, tooltips and value labels (built-in id or function). */ valueFormat?: ValueFormat; /** Value-axis bounds; `"auto"` keeps the data-derived side (e.g. `[0, "auto"]`). */ yDomain?: YDomain; /** Approximate number of value-axis ticks (placed at round values). */ yTickCount?: number; curve?: LineCurve; dualAxis?: DualAxisMode; stacked?: boolean; referenceLines?: ReferenceLine[]; thresholdBands?: ThresholdBand[]; annotations?: ChartAnnotation[]; graphics?: ChartGraphicElement[]; renderer?: RendererPreference; refreshHz?: number; onMarkerDragEnd?: (event: MarkerDragEndEvent) => void; animate?: ChartAnimate; liveAnimate?: LiveAnimate; }; /** * Composable cartesian shell — mix bar, line, area data marks with rule/band overlays. * * @example * ```tsx * * * * * * * * * ``` */ declare function CartesianChart({ data, children, categories: categoriesProp, series: seriesProp, fill, showAxes, showValues, valueSuffix: valueSuffixProp, valueFormat: valueFormatProp, yDomain, yTickCount, curve: curveProp, dualAxis, stacked, referenceLines, thresholdBands, annotations, graphics, renderer, refreshHz, onMarkerDragEnd, animate, liveAnimate: liveAnimateProp, }: CartesianChartProps): ReactElement | null; type ComboChartProps = { categories: string[]; series: ComboSeries[]; fill?: boolean; showAxes?: boolean; showValues?: boolean; valueSuffix?: string; /** Format for value-axis ticks, tooltips and value labels (built-in id or function). */ valueFormat?: ValueFormat; /** Value-axis bounds; `"auto"` keeps the data-derived side (e.g. `[0, "auto"]`). */ yDomain?: YDomain; /** Approximate number of value-axis ticks (placed at round values). */ yTickCount?: number; curve?: LineCurve; dualAxis?: DualAxisMode; stacked?: boolean; referenceLines?: ReferenceLine[]; thresholdBands?: ThresholdBand[]; annotations?: ChartAnnotation[]; graphics?: ChartGraphicElement[]; renderer?: RendererPreference; refreshHz?: number; onMarkerDragEnd?: (event: MarkerDragEndEvent) => void; animate?: ChartAnimate; liveAnimate?: LiveAnimate; }; /** @internal Legacy combo adapter — prefer `CartesianChart` + block marks. */ declare function ComboChart({ categories, series: seriesProp, fill, showAxes, showValues, valueSuffix, valueFormat, yDomain, yTickCount, curve, dualAxis, stacked, referenceLines, thresholdBands, annotations, graphics, renderer, refreshHz, onMarkerDragEnd, animate, liveAnimate: liveAnimateProp, }: ComboChartProps): ReactElement | null; type ScatterChartProps = { series: ScatterSeries[]; graphics?: ChartGraphicElement[]; showAxes?: boolean; showPointLabels?: boolean; showSizeLegend?: boolean; xLabel?: string; yLabel?: string; xSuffix?: string; ySuffix?: string; sizeRange?: [number, number]; }; declare function ScatterChart({ series, showAxes, showPointLabels, showSizeLegend, xLabel, yLabel, xSuffix, ySuffix, sizeRange, graphics, }: ScatterChartProps): ReactElement | null; declare function Crosshair(): ReactElement | null; type NavigatorPreset = "1D" | "1W" | "1M" | "ALL"; declare const DEFAULT_NAVIGATOR_PRESETS: NavigatorPreset[]; /** Map a preset label to a percent brush range for the given categories. */ declare function brushRangeForPreset(preset: NavigatorPreset, categories: string[]): BrushRange; type ChartNavigatorConfig = { presets?: NavigatorPreset[]; initialPreset?: NavigatorPreset; minRangePercent?: number; }; type ChartNavigatorProps = { categories: string[]; series: PlotSeries[]; presets?: NavigatorPreset[]; initialPreset?: NavigatorPreset; brushEnd?: number; minRangePercent?: number; }; declare const CHART_NAVIGATOR_HEIGHT: number; declare function ChartNavigator({ categories, series, presets, initialPreset, brushEnd, minRangePercent, }: ChartNavigatorProps): ReactElement | null; declare const NAVIGATOR_PRESETS_HEIGHT = 28; type NavigatorPresetButtonsProps = { presets: NavigatorPreset[]; active: NavigatorPreset | null; onSelect: (preset: NavigatorPreset) => void; theme: ChartTheme; /** DOM id of the linked range overview strip (aria-controls). */ overviewId?: string; }; declare function NavigatorPresetButtons({ presets, active, onSelect, theme, overviewId, }: NavigatorPresetButtonsProps): ReactElement; type SyncHighlightProps = { categories: string[]; }; declare function SyncHighlight({ categories, }: SyncHighlightProps): ReactElement | null; type ComposedCartesian = { categories: string[]; series: CartesianPlotSeries[]; /** From `` — formats ticks, tooltips and value labels. */ valueFormat?: ValueFormat; curve?: _axicharts_charts_theme.LineCurve; }; declare function composeCartesianMarks(children: ReactNode, data: Record[], config: ChartConfig | undefined, seriesKinds: ComposableMarkKind[]): ComposedCartesian; type ComposedComboCartesian = ComposedCartesian & { series: ComboSeries[]; }; /** * Compose Recharts-style cartesian children into combo series (bar + line + area). */ declare function composeComboCartesianMarks(children: ReactNode, data: Record[], config: ChartConfig | undefined): ComposedComboCartesian; declare function composeCartesianAnnotations(children: ReactNode): ChartAnnotation[]; export { CHART_NAVIGATOR_HEIGHT as C, DEFAULT_NAVIGATOR_PRESETS as D, NAVIGATOR_PRESETS_HEIGHT as N, ScatterChart as S, CartesianChart as a, type CartesianChartProps as b, ChartNavigator as c, type ChartNavigatorConfig as d, type ChartNavigatorProps as e, ChartStateOverlay as f, type ChartStateOverlayProps as g, ComboChart as h, type ComboChartProps as i, type ComposedCartesian as j, type ComposedComboCartesian as k, Crosshair as l, type NavigatorPreset as m, NavigatorPresetButtons as n, type NavigatorPresetButtonsProps as o, type ScatterChartProps as p, StaleBadge as q, SyncHighlight as r, type SyncHighlightProps as s, brushRangeForPreset as t, composeCartesianAnnotations as u, composeCartesianMarks as v, composeComboCartesianMarks as w, useIsStale as x };