import type { Snippet } from 'svelte'; import { type ShapeDescription } from '@pixerate/editor/canvas'; interface Props { /** Unique node id (passed by SvelteFlow or user). */ id?: string; /** Node data; `data.shape` holds the shape description. */ data: { shape?: ShapeDescription; [key: string]: any; }; /** Node width / height (SvelteFlow passes them to custom nodes). */ width?: number; height?: number; selected?: boolean; /** Absolute canvas position (SvelteFlow passes it): brushed strokes sample the paper grain there. */ positionAbsoluteX?: number; positionAbsoluteY?: number; class?: string; /** Rendered over the shape, e.g. SvelteFlow ``s or a label. */ children?: Snippet; [key: string]: any; } declare const ShapeNode: import("svelte").Component; type ShapeNode = ReturnType; export default ShapeNode;