import { MapBrowserEvent } from 'ol'; /** Ol condition function signature. */ export type conditionFn = (mapBrowserEvent: MapBrowserEvent) => boolean; /** Ol condition callback signature for function without params. */ export type callBackFn = (mapBrowserEvent: MapBrowserEvent) => void; /** * Handy function that can be used as condition without using the condition signature. * @param testFn The function to execute as a condition (without params). * @returns an Ol condition function. */ export declare const condition: (testFn: () => boolean) => conditionFn; /** * @param condition The condition to test. * @param callback A callback to execute if the condition is fulfilled. * @returns a condition function that check the given condition. * If the condition is truthy, execute the callback. */ export declare const conditionThen: (condition: conditionFn, callback: callBackFn) => conditionFn;