export type Point = { x: number; y: number; }; export declare function isPointInPolygon(point: Point, polygon: Point[]): boolean; export declare function isInsideRect(point: Point, rect: DOMRect, buffer?: number): boolean; export declare function cross(o: Point, a: Point, b: Point): number; export declare function convexHull(points: Point[]): Point[]; export declare function getSafeZone(triggerRect: DOMRect, contentRect: DOMRect): Point[]; export declare class SafePolygonTracker { private triggerEl; private contentEl; private onClose; private active; private lastCheck; private moveHandler; constructor(options: { triggerEl: HTMLElement; contentEl: HTMLElement; onClose: () => void; }); start(): void; stop(): void; isActive(): boolean; }