import type { Map as _ol_Map_ } from 'ol' import type Collection from 'ol/Collection' import type Feature from 'ol/Feature' import type { Layer } from 'ol/layer' import type VectorLayer from 'ol/layer/Vector' import type { Vector as VectorSource } from 'ol/source' import { Pointer } from 'ol/interaction' import type { StyleLike } from 'ol/style/Style' import BaseEvent from 'ol/events/Event' import type { Coordinate } from 'ol/coordinate' import type { EventsKey } from 'ol/events' import type { ObjectEvent } from 'ol/Object' import type { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable' import type { Types } from 'ol/ObjectEventType' import type { Geometry } from 'ol/geom' type OffsetOnSignature = OnSignature & OnSignature & OnSignature & OnSignature & OnSignature & CombinedOnSignature export interface Options { filter?: (f: Feature, l: Layer) => boolean; layers?: VectorLayer>> | VectorLayer>>[]; features?: Collection; source?: VectorSource; duplicate?: boolean; style?: StyleLike; } /** Offset interaction for offseting feature geometry * @constructor * @extends {Pointer} * @fires offsetstart * @fires offsetting * @fires offsetend * @param {Options} options * @param {Function} [options.filter] a function that takes a feature and a layer and return true if the feature can be modified * @param {Vector | Array} options.layers list of feature to transform * @param {Collection} options.features collection of feature to transform * @param {VectorSource | undefined} options.source source to duplicate feature when ctrl key is down * @param {boolean} options.duplicate force feature to duplicate (source must be set) * @param {Style | Array