import { BaseSchemes, Root, Scope } from 'rete'; import { Area2D, Area2DInherited } from 'rete-area-plugin'; import { Preset } from './presets/types'; import { Strategy } from './strategy'; export * as DockPresets from './presets'; /** * Dock plugin. Allows to create nodes from the dock by dragging or clicking. * @priority 10 * @emits render */ export declare class DockPlugin extends Scope> { nodes: Map<() => Schemes["Node"], { preset: Preset; element: HTMLElement; }>; clickStrategy: Strategy; dropStrategy: Strategy; presets: Preset[]; constructor(); setParent(scope: Scope, [Root]>): void; /** * Add node to the dock. * @param create Function that creates node. * @param index Index of the node in the dock, optional. */ add(create: () => Schemes['Node'], index?: number): void; /** * Remove node from the dock. * @param create Function that creates node. Must be the same as in `add` method. */ remove(create: () => Schemes['Node']): void; /** * Add preset to the dock plugin. * @param preset Preset that will manage dock items. */ addPreset(preset: Preset): void; } //# sourceMappingURL=index.d.ts.map