/** * @license * Copyright 2024 Nuraly, Laabidi Aymen * SPDX-License-Identifier: MIT */ import { ReactiveControllerHost } from 'lit'; import { BaseCanvasController } from './base.controller.js'; import { CanvasHost } from '../interfaces/index.js'; import { WorkflowNode } from '../workflow-canvas.types.js'; import type { UndoController } from './undo.controller.js'; /** * Controller for managing node configuration panel */ export declare class ConfigController extends BaseCanvasController { private undoController; constructor(host: CanvasHost & ReactiveControllerHost); /** * Set the undo controller (called after initialization) */ setUndoController(controller: UndoController): void; /** * Open config panel for a node */ openConfig(node: WorkflowNode): void; /** * Close the config panel */ closeConfig(): void; /** * Get currently configured node */ getConfiguredNode(): WorkflowNode | null; /** * Check if config panel is open */ isOpen(): boolean; /** * Update a configuration field */ updateConfig(key: string, value: unknown): void; /** * Update the node name */ updateName(name: string): void; /** * Update the node description */ updateDescription(description: string): void; /** * Apply a node update to the workflow */ private applyNodeUpdate; /** * Calculate panel position next to the configured node */ getPanelPosition(): { x: number; y: number; } | null; } //# sourceMappingURL=config.controller.d.ts.map