import * as react from 'react'; import { HTMLAttributes, ReactNode } from 'react'; type CodeBlockProps = HTMLAttributes & { /** * Icon of code block * * When passed as a string, it assumes the value is the HTML of icon */ icon?: ReactNode; /** * Allow to copy code with copy button * * @defaultValue true */ allowCopy?: boolean; /** * Keep original background color generated by Shiki or Rehype Code * * @defaultValue false */ keepBackground?: boolean; }; declare const Pre: react.ForwardRefExoticComponent & react.RefAttributes>; declare const CodeBlock: react.ForwardRefExoticComponent & { /** * Icon of code block * * When passed as a string, it assumes the value is the HTML of icon */ icon?: ReactNode; /** * Allow to copy code with copy button * * @defaultValue true */ allowCopy?: boolean; /** * Keep original background color generated by Shiki or Rehype Code * * @defaultValue false */ keepBackground?: boolean; } & react.RefAttributes>; export { CodeBlock, type CodeBlockProps, Pre };