UNPKG

@mermaid-js/layout-elk

Version:
6 lines (5 loc) 219 B
export interface TreeData { parentById: Record<string, string>; childrenById: Record<string, string[]>; } export declare const findCommonAncestor: (id1: string, id2: string, { parentById }: TreeData) => string;