/** * Walks a tree depth-first and returns the nodes from a root down to the * first node matching `isTarget`, both ends included, or `null` when nothing * matches. Children are read from `childrenKey` (e.g. `service` for case * service catalogs, whose services nest under `service`). * * The path is what a breadcrumb, an "A / B / C" label or an ancestor check * needs: `path.map(({ name }) => name)`, `path.slice(0, -1)`, and so on. */ export declare function findTreePath(nodes: readonly TNode[] | null | undefined, isTarget: (node: TNode) => boolean, childrenKey: NoInfer): TNode[] | null;