import type { LayoutDirection, LayoutNode, Edge, MindMapData, ThemeMode } from '../types'; import type { ThemeColors } from './theme'; import type { MindMapPlugin } from '../plugins/types'; interface ExportOptions { padding?: number; scale?: number; background?: string; /** When true, avoid foreignObject elements (for PNG canvas export) */ pngSafe?: boolean; } export interface ExportMindMapToSVGOptions { data?: MindMapData | MindMapData[]; markdown?: string; defaultDirection?: LayoutDirection; theme?: ThemeMode; plugins?: MindMapPlugin[]; readonly?: boolean; foldOverrides?: Record; padding?: number; background?: string; } /** * Build SVG string for export. Embeds a