import { IPoint } from '../../../../../interfaces/IPoint.js'; import { IDesignItem } from '../../../../item/IDesignItem.js'; export interface SvgPathPointInsertion { index: number; t: number; /** Reject a menu action if the path changed while the menu was open. */ originalD: string; } /** Find the nearest segment in screen space, independent of zoom and SVG transforms. */ export declare function findSvgPathPointInsertion(path: SVGPathElement, screenPoint: IPoint): SvgPathPointInsertion | undefined; /** Split the hit segment without moving the path; return the new anchor index. */ export declare function insertSvgPathPoint(item: IDesignItem, hit: SvgPathPointInsertion): number | undefined;