type CollapsedInput = Iterable<number> | Uint8Array;
Which subtrees are folded: node indices, or a mask with one byte per node (Uint8Array).
Uint8Array