import type { DisplayObjectConfig } from '@antv/g';
import type { NodePortStyleProps, Point, TriangleDirection } from '../../types';
import type { PolygonStyleProps } from '../shapes';
import { IconStyleProps } from '../shapes';
import { Polygon } from '../shapes/polygon';
/**
* 三角形节点样式配置项
*
* Triangle node style props
*/
export interface TriangleStyleProps extends PolygonStyleProps {
/**
* 三角形的方向
*
* The direction of the triangle
* @defaultValue 'up'
*/
direction?: TriangleDirection;
}
/**
* 三角形节点
*
* Triangle node
*/
export declare class Triangle extends Polygon {
static defaultStyleProps: Partial;
constructor(options: DisplayObjectConfig);
protected getPoints(attributes: Required): Point[];
protected getPortXY(attributes: Required, style: NodePortStyleProps): Point;
protected getIconStyle(attributes: Required): false | IconStyleProps;
}