import { MeasureType, NormPoint, Shape, ShapeStyle, ShapeType, ToolType } from '../types/annotation.types'; /** True when the tool produces a drawable Konva shape (not pin/select). */ export declare function isShapeTool(tool: ToolType): tool is ShapeType; /** True for measure tools that are drawn by dragging (distance, font). */ export declare function isMeasureDragTool(tool: ToolType): tool is 'measure-distance' | 'measure-font'; /** True for any measurement tool. */ export declare function isMeasureTool(tool: ToolType): tool is MeasureType; /** * Build a drag-based shape (rectangle, ellipse, line, arrow) from a start and * current point. Returns a normalized Shape suitable for the preview layer or * for committing to the store. */ export declare function buildDragShape(type: Exclude, id: string, start: NormPoint, current: NormPoint, style: ShapeStyle, time?: { startTime?: number; }): Shape; /** Build a freehand shape from an accumulated points array. */ export declare function buildFreehandShape(id: string, points: NormPoint[], style: ShapeStyle, time?: { startTime?: number; }): Shape; /** * Decide whether to append `p` to a freehand point list, throttling by a * minimum step distance so the path stays light. */ export declare function shouldSampleFreehand(points: NormPoint[], p: NormPoint): boolean; /** A representative normalized anchor point for a shape (for pins / popovers). */ export declare function shapeAnchor(shape: Shape): NormPoint; /** Centroid of several shapes' anchors (a sensible pin spot for a group). */ export declare function shapesAnchor(shapes: Shape[]): NormPoint; /** Whether a finished shape is large enough to keep (rejects accidental taps). */ export declare function isShapeCommittable(shape: Shape): boolean; //# sourceMappingURL=drawing.d.ts.map