import { ScreenBounds } from '../common/screen-bounds'; import { ScreenXY } from '../common/screen-xy'; export declare function simplify(points: ScreenXY[], tolerance: number): ScreenXY[]; export declare function pointToSegmentDistance(p: ScreenXY, p1: ScreenXY, p2: ScreenXY): number; export declare function closestPointOnSegment(p: ScreenXY, p1: ScreenXY, p2: ScreenXY): number | ScreenXY; export declare function clipSegment(a: ScreenXY, b: ScreenXY, bounds: ScreenBounds, useLastCode?: boolean, round?: boolean): false | ScreenXY[]; export declare function _getEdgeIntersection(a: ScreenXY, b: ScreenXY, code: number, bounds: ScreenBounds, round?: boolean): ScreenXY; export declare function _getBitCode(p: ScreenXY, bounds: ScreenBounds): number; export declare function _sqClosestPointOnSegment(p: ScreenXY, p1: ScreenXY, p2: ScreenXY, sqDist?: boolean): number | ScreenXY;