import type { Layout } from "../schema/recipe.js"; /** * Create a flattener whose `DynamicPlaceholderId` counter spans every * layout in `layouts` — ids are unique per ITEM, mirroring SXA's * per-page assignment, so a recipe declaring several layouts (a page's * item-level + per-version cells) can never mint a key that collides * across them. Author-set ids are pre-scanned across all the layouts * and never re-minted. * * Callers with a single layout can use the `flattenLayout` convenience * export instead. */ export declare const createLayoutFlattener: (layouts: readonly Layout[]) => ((layout: Layout) => Layout); /** * Flatten a single layout — the partial-design / page-design case, * where the recipe declares exactly one layout and the id counter's * scope IS that layout. */ export declare const flattenLayout: (layout: Layout) => Layout;