/** * @sharpee/platform-browser/channels — TextContent → DOM helper. * * Owner context: browser default channel renderers. Projects a * `TextContent[]` array (the shape stdlib's `mainChannel` emits per * append entry) into a flat ``-based fragment that preserves * decorations as nested elements. * * Per ADR-174, every decoration on the wire is `IDecoration { className, * content }` — the bracket parser already resolved platform-vocabulary * names to their `sharpee-`-prefixed final form. The renderer's job is * to wrap the content in a `` carrying that class verbatim; * styling is supplied by the platform's prose CSS bundle (see Phase 1 * sub-phase 1.7). Author classes (no `sharpee-` prefix) flow through * unchanged so stories own their own CSS. */ import type { TextContent } from '@sharpee/text-blocks'; /** * Render a `TextContent[]` array into a `DocumentFragment`. String * nodes become text nodes; decoration nodes become `` elements * whose `class` is the final, fully-resolved CSS class name from the * decoration node. */ export declare function renderTextContent(doc: Document, content: ReadonlyArray): DocumentFragment; /** * Project a `TextContent[]` array to a plain string (decorations * stripped). Used by status / prompt renderers that don't preserve * decorations. */ export declare function flattenTextContent(content: ReadonlyArray): string; //# sourceMappingURL=text-content.d.ts.map