import { DerivedEventHandlers , EventHandlers } from '@craftjs/utils' ; import { EditorStore } from '../editor/store' ; import { NodeId , NodeTree } from '../interfaces/nodes' ; export interface CreateHandlerOptions { onCreate : ( nodeTree : NodeTree ) => void ; } export class CoreEventHandlers < O = { } > extends EventHandlers < { store : EditorStore ; } & O > { handlers ( ) { return { connect : ( el , id ) => { } , select : ( el , id ) => { } , hover : ( el , id ) => { } , drag : ( el , id ) => { } , drop : ( el , id ) => { } , create : ( el , UserElement , options ? ) => { } , } ; } } export abstract class DerivedCoreEventHandlers < O = { } > extends DerivedEventHandlers < CoreEventHandlers , O > { }