import { type Snippet } from 'svelte'; import { type ChartController, type ChartPresence, type ChartScene, type ChartTextMeasure, type ChartTheme, type ChartTooltip, type ChartTooltipMode } from '@pixerate/editor/chart'; interface Props { controller: ChartController; /** Scene width; with `responsive` this is only the fallback before the container is measured (default 640). */ width?: number; /** Scene height in pixels (default 400). */ height?: number; /** Follow the container's width (default `true`). */ responsive?: boolean; /** Colours and type (default: shadcn-style CSS variables). */ theme?: Partial; /** Click to select, drag bars and points, keyboard editing (default `true`). */ editable?: boolean; /** Text width for layout (default: an estimate). */ measureText?: ChartTextMeasure; emptyMessage?: string; class?: string; /** Agent cursors to draw over the chart (see `ChartDirector`). */ presence?: ChartPresence; /** Receives the scene as drawn (e.g. for `ChartDirector`'s `scene`). */ sceneRef?: { current: ChartScene | null; }; /** Show a tooltip on hover: `point` (or `true`) for the bar, point or slice under the pointer, `category` for every series in the category under it (default off). */ tooltip?: boolean | ChartTooltipMode; /** Draws the tooltip's content instead of the category label and one row per series. */ tooltipContent?: Snippet<[ChartTooltip]>; } declare const ChartCanvas: import("svelte").Component; type ChartCanvas = ReturnType; export default ChartCanvas;