import { Rect } from "./types";
import { Selection } from "../models/selections/selection";
export declare type HitTestResult = Selection | null;
export declare function point_in_poly(x: number, y: number, px: number[], py: number[]): boolean;
export declare function point_in_ellipse(x: number, y: number, angle: number, b: number, a: number, x0: number, y0: number): boolean;
export declare function create_empty_hit_test_result(): Selection;
export declare function create_hit_test_result_from_hits(hits: [number, number][]): Selection;
export declare function validate_bbox_coords([x0, x1]: [number, number], [y0, y1]: [number, number]): Rect;
export interface Point {
    x: number;
    y: number;
}
export declare function dist_2_pts(p0: Point, p1: Point): number;
export declare function dist_to_segment_squared(p: Point, v: Point, w: Point): number;
export declare function dist_to_segment(p: Point, v: Point, w: Point): number;
export declare function check_2_segments_intersect(l0_x0: number, l0_y0: number, l0_x1: number, l0_y1: number, l1_x0: number, l1_y0: number, l1_x1: number, l1_y1: number): {
    hit: boolean;
    x: number | null;
    y: number | null;
};
