import { Map as OlMap } from "ol"; import { IShape } from "./LolOpenLayersMap"; import { Pixel } from "ol/pixel"; import { FeatureLike } from "ol/Feature"; export declare const HIGHLIGHT_LAYER = "highlight"; interface IFeature { type: "Feature"; properties: Record; geometry: Record; } interface IFeatureCollection { type: "FeatureCollection"; features: IFeature[]; } export declare function createFeatureCollection(shape: IShape[]): IFeatureCollection; /** * Some features have complex borders that alter the clickable envelope. * We test click-ability of these features using geometry instead to fix. * * @param map Open layers map * @param pixel Pixel location on map * @param geometrySizeForClickDetection The radius from the geometry for a valid click * @param feature Feature to test * @return Distance to geometry if matched otherwise null for not matched */ export declare const featureMatchByGeometry: (map: OlMap, pixel: Pixel, geometrySizeForClickDetection: number, feature: FeatureLike) => number | null; export {};