import 'highlight.js/styles/github.css'; import type { ClassValue } from 'svelte/elements'; /** Additional CSS classes to pass to the aside. */ interface Props { /** * The language to use for syntax highlighting. Must be a language supported by * highlight.js: https://highlightjs.org/ */ language: string; /** * The code to render in the code-snippet. */ code: string; /** * Whether or not to show a copy-to-clipboard button. */ showCopyButton?: boolean; cx?: ClassValue; caption?: import('svelte').Snippet; onCopy?: (details: { succeeded: boolean; message: string; }) => void; /** * Whether or not to wrap lines. */ wrapLines?: boolean; } /** * For rendering readonly blocks of code. Uses `highlight.js` for syntax highlighting: * * https://highlightjs.org/ * * ```svelte * * This text captions the code snippet. * * ``` */ declare const CodeSnippet: import("svelte").Component; type CodeSnippet = ReturnType; export default CodeSnippet;