import { IPoint, NodeInfo } from "@/idl";
import { FlowchartEdgeInfo, FlowchartNodeInfo } from "@/parse-engine/mermaid/flow-chart/entity/FlowChartInfo";
import { EdgeLayoutInfo, NodeLayoutInfo } from "@/parse-engine/mermaid/layout-engine/DAGLayoutInfo";
interface GenerateProp {
    id: string;
    zIndex: number;
    parentId: string;
}
export declare class ParserUtils {
    static generatePie(x: number, y: number, startAngle: number, endAngle: number, r: number, color: string, { id, zIndex, parentId }: GenerateProp): NodeInfo;
    static generateText(x: number, y: number, text: string, bias: boolean, { id, zIndex, parentId }: GenerateProp, fontSize?: number, fontFamily?: string, fontColor?: string, bold?: boolean): NodeInfo;
    static generateRect(x: number, y: number, width: number, height: number, color: string, { id, zIndex, parentId }: GenerateProp): NodeInfo;
    static generateEllipse(cx: number, cy: number, size: number, color: string, { id, zIndex, parentId }: GenerateProp): NodeInfo;
    static generateBrokenLine(points: IPoint[], { id, zIndex, parentId }: GenerateProp, color: string): NodeInfo;
    /**
     * 生成一条直线（两端点）
     */
    static generateStraightLine(start: IPoint, end: IPoint, { id, zIndex, parentId }: GenerateProp, color?: string, alpha?: number, lineWidth?: number): NodeInfo;
    static generateFlowNode({ x, y, width, height }: NodeLayoutInfo, nodeInfo: FlowchartNodeInfo, { id, zIndex, parentId }: {
        id: string;
        zIndex: number;
        parentId: string;
    }, color?: string, borderColor?: string): NodeInfo;
    /**
     * 生成流程图连线节点（带箭头）
     */
    static generateFlowEdge({ points }: EdgeLayoutInfo, edge: FlowchartEdgeInfo, { id, zIndex, parentId }: {
        id: string;
        zIndex: number;
        parentId: string;
    }): NodeInfo;
}
export {};
//# sourceMappingURL=ParserUtils.d.ts.map