import { type Component } from "svelte"; import type { ChartNodeViewMount, ChartNodeViewState } from "@pixerate/editor"; import type { ChartTheme } from "@pixerate/editor/chart"; export interface SvelteChartNodeViewOptions { /** Chart colours (default: the CSS-variable theme). */ theme?: Partial; /** Show the data grid under the chart while editing (default `true`). */ showDataGrid?: boolean; /** Draw something else for each chart (default `ChartNodeView`; it receives `view`). */ component?: Component<{ view: ChartNodeViewState; theme?: Partial; showDataGrid?: boolean; }>; } /** * The `nodeView` for the core `chart` node, mounting `ChartNodeView` into each chart: * `createRichTextPreset({ chart: { nodeView: createSvelteChartNodeView() } })`. */ export declare function createSvelteChartNodeView(options?: SvelteChartNodeViewOptions): ChartNodeViewMount;