export interface TreeData { parentById: Record; childrenById: Record; } export declare const findCommonAncestor: ( id1: string, id2: string, { parentById }: TreeData ) => string;