import { Map as _ol_Map_ } from 'ol'; import Feature from 'ol/Feature'; import { Vector } from 'ol/layer'; import { StyleLike } from 'ol/style/Style'; import { Interaction } from 'ol/interaction'; export interface Options { layers: Vector[] | ((...params: any[]) => any) | undefined; } /** Interaction to draw holes in a polygon. * It fires a drawstart, drawend event when drawing the hole * and a modifystart, modifyend event before and after inserting the hole in the feature geometry. * @constructor * @extends {Interaction} * @fires drawstart * @fires drawend * @fires modifystart * @fires modifyend * @param {olx.interaction.DrawHoleOptions} options extend olx.interaction.DrawOptions * @param {Array | function | undefined} options.layers A list of layers from which polygons should be selected. Alternatively, a filter function can be provided. default: all visible layers * @param { Style | Array