import { type CanvasComponentsController } from '@pixerate/editor/canvas'; import type { CanvasNode } from './types.js'; /** The variant-editing actions the panel runs (a components controller or rune satisfies it). */ type Actions = Pick, 'addVariant' | 'removeVariant' | 'setVariantProperties' | 'renameVariantProperty' | 'renameVariantValue'>; interface Props { nodes: CanvasNode[]; /** Inserts an instance of a component (or a set's default variant); called on click. */ oninsert: (componentId: string) => void; /** * Variant editing: with it, sets get "+ Variant" and a properties editor (rename properties * and values inline), and variants a menu (also on right click) to edit, duplicate or remove them. */ components?: Actions; /** Receives refusals (e.g. a duplicate variant combination). */ onerror?: (reason: string) => void; /** Show the search field (default `true`). */ search?: boolean; class?: string; } declare const CanvasComponentsPanel: import("svelte").Component; type CanvasComponentsPanel = ReturnType; export default CanvasComponentsPanel;