export default function initEditor(dispatch: any, getState: any): { onInit: (editor: any) => void; onChange: (action: any) => void; onSelectionChange: () => void; onElementEdit: (selem: any) => Promise; onEnhancedStereoEdit: ({ type, ...init }: { [x: string]: any; type: any; }) => Promise; onQuickEdit: (atom: any) => Promise; onBondEdit: (bond: any) => Promise; onRgroupEdit: (rgroup: any) => Promise; onSgroupEdit: (sgroup: any) => Promise<{ type: any; attrs: any; }>; onSdataEdit: (sgroup: any) => Promise<{ type: any; attrs: any; }>; onMessage: (msg: any) => void; onAromatizeStruct: (struct: any) => any; onDearomatizeStruct: (struct: any) => any; onMouseDown: () => void; };