import { BboxEnclosedPoints, BboxPoint, BboxPoints, ClickInfo } from '../types'; /** * Interface for the onClick function props. */ interface OnClickProps { /** Information about the click event. */ info: ClickInfo; /** Updated available area as an array of coordinates. */ updatedAvailableArea: BboxEnclosedPoints | null; /** Indicates if the edit mode is active. */ editModeIsActive: boolean; /** Predicted hovered points. */ predictedHoveredPoints: BboxPoints | null; /** Indicates if the bounding box is hovered. */ bboxIsHovered: string | boolean; /** Current coordinates of the active bounding box. */ activeBboxPoints: BboxPoints | BboxPoint | []; /** Function to update the active bounding box points. */ setActiveBboxPoints: (activeBboxPoints: BboxPoints | BboxPoint | []) => void; /** Function to set predicted hovered points. */ setPredictedHoveredPoints: (predictedHoveredPoints: BboxPoints | null) => void; /** Callback function to execute when bounding box coordinates change. */ onBboxCoordinatesChange: (bbox: BboxPoints | BboxPoint | null) => void; /** Function to toggle the edit mode state. */ setEditModeIsActive: (isActive: boolean | ((prev: boolean) => boolean)) => void; /** Function to set the bounding box hover state. */ setBboxIsHovered: (state: string) => void; } /** * Handles click events on a map layer. * * @param {OnClickProps} props - The props for the onClick function. */ export declare const onClick: ({ info, updatedAvailableArea, editModeIsActive, predictedHoveredPoints, bboxIsHovered, activeBboxPoints, setActiveBboxPoints, setPredictedHoveredPoints, onBboxCoordinatesChange, setEditModeIsActive, setBboxIsHovered, }: OnClickProps) => void; export {};