import { Position } from '../../types/core'; /** * Apply offset to a position */ export declare const applyOffset: (position: Position, offset: Position) => Position; /** * Subtract offset from a position */ export declare const subtractOffset: (position: Position, offset: Position) => Position; /** * Calculate preview position by applying offset * Returns null if offset is null */ export declare const getPreviewPosition: (position: Position, offset: Position | null) => Position | null; /** * Calculate midpoint between two positions */ export declare const getMidpoint: (from: Position, to: Position) => Position; /** * Calculate distance between two positions */ export declare const getDistance: (from: Position, to: Position) => number; /** * Check if a point is within a threshold distance from a line segment */ export declare const isPointNearLineSegment: (point: Position, lineStart: Position, lineEnd: Position, threshold?: number) => boolean;