import type { ComponentProps } from 'svelte'; import { type ChartController, type DownloadChartPngOptions } from '@pixerate/editor/chart'; import type { AgentPlayback } from '@pixerate/editor/tools'; import ChartCanvas from './ChartCanvas.svelte'; interface Props { controller: ChartController; /** The settings sidebar (default `true`). */ /** House colours the inspector offers beside each series colour (e.g. from `useStyleSwatches`). */ swatches?: readonly string[]; showInspector?: boolean; /** The data grid under the chart (default `true`). */ showDataGrid?: boolean; /** Undo / redo, Download PNG and the selection readout (default `true`). */ showToolbar?: boolean; /** Size, theme, scale and file name for the toolbar's Download PNG (default 800 × 450, light theme). */ pngOptions?: DownloadChartPngOptions; /** Chart height in pixels (default 380). */ height?: number; canvasProps?: Omit, 'controller' | 'height'>; class?: string; /** * Agent playback: act out the chart tools' calls here with the agent's cursor, on the inspector, * the data grid and the toolbar (default: `setAgentPlayback` above; `null` turns it off). With * `canvasProps.presence` (a `ChartDirector`'s), the director's drags share the cursor. */ playback?: AgentPlayback | null; /** The playback surface id (default `chart`, where the chart tool provider plays). */ playbackId?: string; /** Bring the editor on screen (switch to its tab) before the agent acts. */ onplaybackreveal?: () => void | Promise; } declare const ChartEditor: import("svelte").Component; type ChartEditor = ReturnType; export default ChartEditor;