import type { InternalHelpers, LayoutData, RenderOptions, SVG } from 'mermaid';
export declare function dir2ElkDirection(dir: unknown): 'RIGHT' | 'LEFT' | 'DOWN' | 'UP';
interface ElkSubgraphConfig {
    mergeEdges?: boolean;
    nodePlacementStrategy?: string;
}
export declare function buildSubgraphLayoutOptions(node: {
    dir?: string;
}, elkConfig: ElkSubgraphConfig | undefined, algorithm: string | undefined): Record<string, unknown>;
export declare const render: (data4Layout: LayoutData, svg: SVG, { common, getConfig, insertCluster, insertEdge, insertEdgeLabel, insertMarkers, insertNode, interpolateToCurve, labelHelper, log, positionEdgeLabel, }: InternalHelpers, { algorithm }: RenderOptions) => Promise<void>;
export {};
