import { ProposedChange } from './change'; export interface EditorNewNode { id?: string; type: string; parentID: string; parentIndex: number; label: string; constructorProps?: { [id: string]: any; }; props?: { [id: string]: any; }; addDefaultChildren?: boolean; } export interface Editor { proposeChanges: (changes: ProposedChange[]) => void; addReplaceFiles: (files: { name: string; data: ArrayBuffer; changes?: ProposedChange[]; }[]) => void; createNode: (node: EditorNewNode) => void; }