import { type AnnotationHandleDefinition, type AnnotationHandleOptions } from "#types/editing"; import { type Detection, type Point, type Rect } from "#types/detections"; export declare function getAnnotationHandles(detection: Detection, viewportScale?: number, options?: AnnotationHandleOptions): readonly AnnotationHandleDefinition[]; export declare function pickAnnotationHandle(handles: readonly AnnotationHandleDefinition[], point: Point): AnnotationHandleDefinition | undefined; export declare function applyAnnotationHandleDrag(detection: Detection, handle: AnnotationHandleDefinition, point: Point, mediaDimensions?: Pick, startPoint?: Point): Detection; export declare function deleteAnnotationVertex(detection: Detection, vertexIndex: number): Detection | null; export declare function offsetDetection(detection: Detection, dx: number, dy: number): Detection; /** Finds the closest path segment, useful for contextual vertex insertion. */ export declare function findClosestAnnotationSegment(points: readonly Point[], point: Point, closed: boolean): { index: number; distance: number; } | undefined; //# sourceMappingURL=annotation-handles.d.ts.map