export interface MindMapTreeNode { id: string; index: string; children: MindMapTreeNode[]; } export interface MindMapNode { index: string; parent?: string; } export type MindMapJson = Record; export interface MindMapElement { index: string; seed: number; children: { 'affine:surface:ymap': boolean; json: MindMapJson; }; layoutType: number; style: number; type: 'mindmap'; id: string; }