import { Position } from '../types'; /** Movement (px) required before a pointer gesture counts as a drag */ export declare const TOOLBAR_DRAG_THRESHOLD = 5; /** Minimum gap between the toolbar and the viewport edge */ export declare const TOOLBAR_VIEWPORT_PADDING = 20; export interface ToolbarSize { width: number; height: number; } export interface ViewportSize { width: number; height: number; } /** * Keep the toolbar fully inside the viewport. */ export declare function clampToolbarPosition(x: number, y: number, toolbar: ToolbarSize, viewport: ViewportSize, padding?: number): Position; /** * True when the pointer has moved far enough to count as a drag, not a click. */ export declare function hasExceededDragThreshold(startX: number, startY: number, currentX: number, currentY: number, threshold?: number): boolean; /** * Translate the toolbar by the pointer delta and clamp to the viewport. */ export declare function computeDraggedToolbarPosition(origin: Position, startPointer: Position, currentPointer: Position, toolbar: ToolbarSize, viewport: ViewportSize, padding?: number): Position; //# sourceMappingURL=toolbar-drag.d.ts.map