import type { JSX } from 'solid-js'; import type { ChartHostCommonOptions, ChartHostOptions, ChartTooltipBodyContext, ChartValue } from '@tanstack/charts'; export interface ChartPresentationProps { class?: string; style?: JSX.CSSProperties; } export interface ChartTooltipBodyRenderContext extends ChartTooltipBodyContext { defaultBody: JSX.Element; } export interface ChartTooltipBodyRenderProps { renderTooltipBody?: (context: ChartTooltipBodyRenderContext) => JSX.Element; } export type ChartCommonProps = ChartHostCommonOptions & ChartPresentationProps & ChartTooltipBodyRenderProps; export type ChartProps = ChartHostOptions & ChartPresentationProps & ChartTooltipBodyRenderProps;