import { OolongApp } from "@/app";
import { SyntaxParseResult } from "@/parse-engine/SyntaxParseResult";
import { PieInfo } from "@/idl";
import { ChartProps } from "@/graphics/props/chart/ChartProps";
export declare class SyntaxAPI {
    app: OolongApp;
    private pasteWorker;
    constructor(app: OolongApp);
    parse(type: string, data: any): SyntaxParseResult;
    parseMermaid(data: any): Promise<SyntaxParseResult>;
    insertToSection(sectionId: string, pieInfo: PieInfo): string[];
    /**
     * 通用插入方法：根据解析类型将图表数据插入到 section 中
     */
    insertToSectionByType(sectionId: string, parseType: string, chartPropsUpdate: Partial<ChartProps>): string[];
    /**
     * 将 mermaid 语法解析后的节点插入到 MermaidSection 中
     * @param sectionId MermaidSection 节点 ID
     * @param mermaidCode mermaid 语法字符串
     */
    insertMermaidToSection(sectionId: string, mermaidCode: string): Promise<string[]>;
}
//# sourceMappingURL=SyntaxAPI.d.ts.map