import { type ChartIssue, type ChartStreamFormat, type ChartTheme } from '@pixerate/editor/chart'; import type { Snippet } from 'svelte'; interface Props { /** Mermaid (xychart-beta, pie, radar-beta) or a JSON chart spec, as far as it has arrived. */ source: string; /** Nothing more will arrive: the final chart is drawn at once and problems are reported. */ complete?: boolean; format?: ChartStreamFormat; width?: number; height?: number; theme?: Partial; /** How often a new layout is adopted while streaming (ms, default 300). */ adoptInterval?: number; /** Tween length between layouts (ms, default 450; 0 to switch at once). */ tween?: number; /** Shown before anything can be drawn. */ placeholder?: Snippet; /** Called with the parse problems once `complete`. */ onissues?: (issues: ChartIssue[]) => void; class?: string; } declare const ChartStreamingView: import("svelte").Component; type ChartStreamingView = ReturnType; export default ChartStreamingView;