/** * Nested content for the composition blocks: a tab panel, an accordion * section, a carousel slide or a bento tile may hold typed child blocks in * `items[i].blocks`. * * Every block type may nest except the page-level ones listed in * `NOT_NESTABLE`. The slot itself accepts any type and the exclusion is checked * here, so a block another group registers later is nestable without a list to * keep in sync, and `describe` stays small (no long `accepts` enumeration). */ import type { IrNode } from '../../ir.js'; import type { CheckContext } from '../../registry/block-module.js'; import type { PropSchema } from '../../registry/prop-schema.js'; import { type RenderContext } from '../../render/render-context.js'; /** Page-level blocks that never sit inside an item: they own landmarks and the page heading. */ export declare const NOT_NESTABLE: readonly string[]; /** The `blocks` field of a composition item whose other content lives in `contentField`. */ export declare function nestedBlocks(contentField: string, maxItems: number): PropSchema; /** The IR node ids nested in item `index`; empty when the item has no blocks. */ export declare function itemSlot(node: IrNode, index: number): readonly string[]; /** Item `index`'s nested blocks in a wrapper that keeps wide children inside its column; '' without blocks. */ export declare function renderItemBlocks(node: IrNode, index: number, context: RenderContext): string; /** * The body of item `index`. A text-only item renders exactly as it did before * items could nest blocks: its text bare, or in one paragraph when * `paragraph` is set, even when empty. An item with blocks shows its text as a * paragraph only when present, then the blocks in a wrapper that spaces them * from the text and keeps wide children inside the item's column. */ export declare function renderItemBody(node: IrNode, index: number, context: RenderContext, text: string, paragraph: boolean): string; /** * Every item needs content: `contentField` (text, or a bento tile's title) or * nested blocks. Without either the item would render empty, so it is * reported at the item's path. Nested types are checked as well. */ export declare function checkItemContent(node: IrNode, context: CheckContext, contentField: string, message: string): void; //# sourceMappingURL=nestable-blocks.d.ts.map