import type { NodeShape } from '../types/index'; import type { Vec2 } from './Vec2'; interface NodeGeom { x: number; y: number; shape: NodeShape; radius: number; width: number; height: number; } /** * Returns the point on the node shape boundary along the direction from * the node center toward `target`. * Edges use this so they visually terminate at the shape surface, not the center. */ export declare function getBoundaryPoint(node: NodeGeom, target: Vec2): Vec2; /** * Returns true if `point` lies within the node shape (+ optional hit padding). */ export declare function hitTestNode(node: NodeGeom, point: Vec2, padding?: number): boolean; /** * Draw a node shape using canvas 2D context. * Caller is responsible for saving/restoring ctx state if needed. */ export declare function drawNodeShape(ctx: CanvasRenderingContext2D, node: NodeGeom, fillColor: string, strokeColor: string, strokeWidth: number, opacity: number, glowColor: string, glowRadius: number): void; export {}; //# sourceMappingURL=NodeShapes.d.ts.map