collab/mermaid/packages/mermaid-layout-elk/src/find-common-ancestor.d.tsblame
View source
6dd74de1export interface TreeData {
6dd74de2 parentById: Record<string, string>;
6dd74de3 childrenById: Record<string, string[]>;
6dd74de4}
6dd74de5export declare const findCommonAncestor: (
6dd74de6 id1: string,
6dd74de7 id2: string,
6dd74de8 { parentById }: TreeData
6dd74de9) => string;