type Node = { children: Node[]; }; type PredicateFunc = (item: Node) => boolean; export declare function filterNested(tree: Node[], predicate: PredicateFunc, acc?: Node[]): Node[]; export declare function findNested(tree: Node[], predicate: PredicateFunc): unknown; export declare function findNestedPath(tree: Node[], predicate: PredicateFunc): unknown; export {};