import type { DisplayObjectConfig, PolygonStyleProps as GPolygonStyleProps, Group } from '@antv/g';
import { Polygon as GPolygon } from '@antv/g';
import type { Point } from '../../types';
import type { BaseNodeStyleProps } from '../nodes/base-node';
import { BaseNode } from '../nodes/base-node';
/**
* 多边形节点样式配置项
*
* Polygon node style props
*/
export interface PolygonStyleProps extends BaseNodeStyleProps {
/**
* 多边形的顶点坐标
*
* The vertex coordinates of the polygon
* @internal
*/
points?: ([number, number] | [number, number, number])[];
}
/**
* Abstract class for polygon nodes,i.e triangle, diamond, hexagon, etc.
*/
export declare abstract class Polygon extends BaseNode {
constructor(options: DisplayObjectConfig);
get parsedAttributes(): Required;
protected drawKeyShape(attributes: Required, container: Group): GPolygon | undefined;
protected getKeyStyle(attributes: Required): GPolygonStyleProps;
protected abstract getPoints(attributes: Required): Point[];
getIntersectPoint(point: Point, useExtendedLine?: boolean): Point;
}