import { CSSProperties } from 'react'; import { SyntaxHighlighterProps } from 'react-syntax-highlighter'; export interface CodeProps extends Omit { /** * 自定义 class */ className?: string; /** * 语言 * [available language](https://github.com/conorhastings/react-syntax-highlighter/blob/master/AVAILABLE_LANGUAGES_PRISM.MD) */ language?: string; /** * 主题,对应 react-syntax-highlighter 的 `style` * * default as `tomorrow` * * [available themes](https://github.com/conorhastings/react-syntax-highlighter/blob/master/AVAILABLE_STYLES_PRISM.MD) */ theme?: Record; /** * 自定义样式,应用到 pre element * 对应 react-syntax-highlighter 的 `customStyle` */ customStyle?: CSSProperties; /** * 是否显示行号 */ showLineNumbers?: boolean; } export declare function Code(props: CodeProps): import("react/jsx-runtime").JSX.Element; export declare namespace Code { var displayName: string; }