import type { IReadonlyPathTrieNode } from './LookupByPath'; /** * Options for the getFirstDifferenceInCommonNodes function. * @beta */ export interface IGetFirstDifferenceInCommonNodesOptions { /** * The first node to compare. */ first: IReadonlyPathTrieNode; /** * The second node to compare. */ second: IReadonlyPathTrieNode; /** * The path prefix to the current node. * @defaultValue '' */ prefix?: string; /** * The delimiter used to join path segments. * @defaultValue '/' */ delimiter?: string; /** * A function to compare the values of the nodes. * If not provided, strict equality (===) is used. */ equals?: (a: TItem, b: TItem) => boolean; } /** * Recursively compares two path tries to find the first shared node with a different value. * * @param options - The options for the comparison * @returns The path to the first differing node, or undefined if they are identical * * @remarks * Ignores any nodes that are not shared between the two tries. * * @beta */ export declare function getFirstDifferenceInCommonNodes(options: IGetFirstDifferenceInCommonNodesOptions): string | undefined; //# sourceMappingURL=getFirstDifferenceInCommonNodes.d.ts.map