//#region src/libs/shared-utils.d.ts interface IPoint { x: number; y: number; } type Polygon = IPoint[]; /** `wrapArray(['a','b','c','d'], 2) === ['c','d','a','b']` */ declare function wrapArray(array: T[], startIndex: number): T[]; /** Focus first candidate that actually accepts focus. */ declare function focusFirst(candidates: HTMLElement[], preventScroll?: boolean): void; /** Point-in-polygon (ray casting). https://github.com/substack/point-in-polygon */ declare function isPointInPolygon(point: IPoint, polygon: Polygon): boolean; //#endregion export { wrapArray as a, isPointInPolygon as i, Polygon as n, focusFirst as r, IPoint as t };