import React from 'react';
/**
 * 将坐标点数组转换为polygon points字符串
 * @param coordinates 坐标点数组 [[x1, y1], [x2, y2], ...]
 * @returns points字符串
 */
export declare const coordinatesToPoints: (coordinates: number[][]) => string;
/**
 * 将坐标点按type分组（参考BoundaryBorderLayer逻辑）
 * @param coordinates 坐标点数组 [[x1, y1, type], [x2, y2, type], ...]
 * @param autoClose 是否自动闭合路径
 * @returns 分组后的段落数组
 */
export declare const groupCoordinatesByType: (coordinates: number[][], autoClose?: boolean) => Array<{
    type: number;
    points: number[][];
}>;
/**
 * 创建path数据字符串
 * @param points 点位数组
 * @returns path数据字符串
 */
export declare const createPathData: (points: number[][]) => string;
interface PolygonElementProps {
    points: number[][];
    fillColor?: string;
    fillOpacity?: number;
    strokeColor?: string;
    strokeWidth?: number;
    strokeOpacity?: number;
    onVertexDelete?: (index: number) => void;
    canSelect?: boolean;
    className?: string;
    style?: React.CSSProperties;
    createMode?: boolean;
    showPoints?: boolean;
    onPointClick?: (index: number, e?: React.MouseEvent) => void;
    completed?: boolean;
    mousePos?: {
        x: number;
        y: number;
    } | null;
    editMode?: boolean;
    onCoordinatesChange?: (coordinates: number[][]) => void;
    onPathClick?: (e: React.MouseEvent) => void;
    onPolygonClick?: (e: React.MouseEvent) => void;
    draggable?: boolean;
}
export declare const PolygonElement: React.FC<PolygonElementProps>;
export default PolygonElement;
//# sourceMappingURL=index.d.ts.map