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