import{type TemplateResult}from'lit';import{StreamingTextRuntimeBase,type LyraStreamingTextEventMap as StreamingTextRuntimeEventMap}from'./streaming-text-base.class.js';export{looksLikeMarkdown,type LyraStreamingTextEventMap,type StreamingTextContentMode,}from'./streaming-text-base.class.js'; /** ``'s event surface. Identical to ``'s, because the * two differ only in which Markdown element Markdown mode composes; it is named per tag so a * consumer can annotate a handler against this element without reaching for its sibling's map. */ export interface LyraStreamingTextCoreEventMap extends StreamingTextRuntimeEventMap{} /** * `` — a build-lean `` variant for a consumer whose * `languages` map already covers every fenced-code language it will ever stream, or who never * renders fenced code at all. Every capability is identical to `` -- token * coalescing, `contentMode` auto-detection, the blinking cursor, the `lr-content-settled` event, * and the full forwarded Markdown configuration surface (`tabSize`, `htmlMode`, `gfm`, * `linkTarget`, `internalLinkPrefix`, `headingOffset`, `highlightCode`, `headingAnchors`, `math`, * `maxHeight`) -- only which Markdown element Markdown mode composes differs: this variant * renders `` (`../markdown/markdown-core.js`) instead of ``, so this * component's own module never textually contains a reference to ``'s ~200-language * dynamic-import table. A fenced code block whose language isn't a key in `languages` always * renders the plain-text fallback here -- there is no default/full-table highlighter to fall back * to, mirroring ``'s own contract. * * @customElement lr-streaming-text-core * @event lr-content-settled - Fired after newly-coalesced content actually reaches the rendered * DOM (plain-text mode only -- see ``'s class doc). `detail: null`. * @csspart base - The root container. * @csspart cursor - The blinking (or, under reduced motion, static) cursor bar. Only rendered while `streaming` is `true`. * @csspart content - Forwarded from the composed `` in Markdown mode -- the * wrapper around its rendered (or plain-text fallback) output; respects `max-height`. * @csspart heading - Forwarded from the composed `` in Markdown mode -- every * rendered `

`–`

` (shifted by `heading-offset`). * @csspart paragraph - Forwarded from the composed `` in Markdown mode -- every * rendered `

`. * @csspart list - Forwarded from the composed `` in Markdown mode -- every * rendered `