import type { RNode } from './model';
import type { NodeId } from './processing/node-id';
import type { ParentInformation } from './processing/decorate';
/**
 * Collects all node ids within a tree given by a respective root node
 *
 * @param nodes - The root id nodes to start collecting from
 * @param stop  - A function that determines whether to stop collecting at a given node, does not stop by default
 */
export declare function collectAllIds<OtherInfo>(nodes: RNode<OtherInfo & ParentInformation> | (RNode<OtherInfo & ParentInformation> | null | undefined)[] | undefined, stop?: (node: RNode<OtherInfo & ParentInformation>) => boolean): Set<NodeId>;
