import { Coordinate } from 'types'; export declare const usePolygonEditor: (onChange: ((polygon: Coordinate[] | Coordinate[][], isValid: boolean) => void) | undefined, polygons: Coordinate[] | Coordinate[][], activeIndex: number) => { selection: Set; polygons: Coordinate[][]; isPolygonClosed: boolean; addPoint: (coordinate: Coordinate) => void; addPointToEdge: (coordinate: Coordinate, index: number) => void; deselectAllPoints: () => void; removePointFromSelection: (index: number) => void; addPointsToSelection: (indices: number[]) => void; selectPoints: (indices: number[]) => void; moveSelectedPoints: (movement: Coordinate) => void; deletePolygonPoints: () => void; selectAllPoints: () => void; setPolygon: (polygon: Coordinate[]) => void; undo: () => void; redo: () => void; };