import type { StyledText } from "@opentui/core"; import { type AnsiLine, type RenderMarkdownLinesOptions } from "../../ui-core/rendering/render-markdown-lines.js"; import { type MarkdownStreamCache } from "../../ui-core/rendering/streaming-markdown.js"; export type StyledLine = StyledText; export interface StyledMarkdownOptions extends RenderMarkdownLinesOptions { readonly defaultFg?: string | undefined; } export declare function styleAnsiLine(line: AnsiLine, defaultFg: string | undefined): StyledText; export declare function styleAnsiLines(lines: readonly AnsiLine[], defaultFg: string | undefined): StyledText[]; export declare function renderStyledMarkdownLines(text: string, options: StyledMarkdownOptions): StyledText[]; export interface StyledStreamingMarkdownResult { readonly lines: StyledText[]; readonly cache: MarkdownStreamCache; } export declare function renderStyledStreamingMarkdown(input: { readonly text: string; readonly streaming: boolean; readonly options: StyledMarkdownOptions; readonly cache: MarkdownStreamCache; }): StyledStreamingMarkdownResult;