import { type ReactNode } from 'react'; export interface CodeBlockProps { /** The code, as it is copied and downloaded. */ code: string; /** The language to highlight it as, such as `yaml`; the header names it * unless `title` says otherwise. Without it the code reads as plain text. */ language?: string | undefined; /** The header's text in place of the language, such as a file's name. */ title?: ReactNode; /** Names the code for assistive technology where `title` is not plain text; * by default the title, or the language ("yaml code"). */ label?: string | undefined; /** Adds a download button that saves the code under this name. */ filename?: string | undefined; /** Controls of the host's own, before download and copy. */ headerActions?: ReactNode; /** The copy button; on by default. */ copy?: boolean | undefined; /** Numbers the lines; on by default when there is more than one. */ lineNumbers?: boolean | undefined; /** The first line's number, for an excerpt. */ startLine?: number | undefined; /** Breaks long lines instead of scrolling them sideways. */ wrap?: boolean | undefined; /** Grows to the height of its container and scrolls inside it, for a view * that is the code, such as a tab. Without it the block is as tall as its * code, up to `maxHeight`. */ fill?: boolean | undefined; /** The tallest it grows before it scrolls, as a CSS length or in pixels. */ maxHeight?: number | string | undefined; /** The code is still arriving: highlighting is not cached, and the block * keeps its end in view while it is scrolled there. */ streaming?: boolean | undefined; /** On a phone, reaches past the host's content padding (`p-4`) to the * container's edges, without corners, so long lines get the screen's width. */ bleed?: boolean | undefined; className?: string | undefined; } /** Code to read on a page, such as a workflow's YAML: highlighted in the * theme's code colors, with numbered lines, a copy button and, given a * `filename`, a download button. Markdown's fenced code renders as one, so * both read the same. */ export declare function CodeBlock({ code, language, title, label, filename, headerActions, copy, lineNumbers, startLine, wrap, fill, maxHeight, streaming, bleed, className, }: CodeBlockProps): import("react").JSX.Element;