import { HydratedItem } from 'contexts/types'; import { HydratedElement } from 'types'; /** * Walk a hydrated step's `items` tree and collect every leaf * `HydratedElement`. Sections recurse; controllingPerson and residencies * groups are excluded (they're tested separately and have their own item * shapes that don't fit `HydratedElement`). * * Used by `hydrateStep.*.test.ts` files to assert which fields a step * surfaces — the tests typically map this output to `.key` and check * inclusion of a few expected keys. */ export declare const flattenElements: (items: HydratedItem[]) => HydratedElement[];