import { IndexPath } from './indexPath.js'; import { KeyPath } from './types.js'; type AncestorPathsOptions = { /** * The function to use to compare the paths. * * Returns a number that is less than 0 if `a` should come before `b`, * 0 if they are equal, and greater than 0 if `a` should come after `b`. * * @default comparePathsByComponent */ compare?: (a: TPath, b: TPath) => number; }; /** * This function cleans up the `indexPaths` array by * * 1. sorting the `indexPaths` * 2. removing any `indexPaths` that are descendants of other `indexPaths` * 3. removing any `indexPaths` that are duplicates */ export declare function ancestorPaths(paths: TPath[], options?: AncestorPathsOptions): TPath[]; export {};