import { default as React } from 'react';
import { Language } from './highlight.js';

export type CodeBlockProps = {
    /**
     * Your code (as text).
     */
    content: string;
    /**
     * Whether or not to apply syntax highlighting to the rendered code.
     *
     * @default true
     */
    highlighting?: boolean | undefined;
    /**
     * The language used to apply syntax highlighting.
     *
     * @default "text"
     */
    language?: Language | undefined;
};
/**
 * A code block renders code in a pre-formatted monospace text block with syntax highlighting.
 *
 * ![Code block with syntax highlighting](./screenshots/code_block_with_highlighting.png)
 *
 * @param props
 * @example
 * ```tsx
 * import { CodeBlock } from "@netlify/sdk/ui/react/components";
 *
 * <CodeBlock content={`<p>Hello, world!</p>`} language="html" />
 * ```
 * @example
 * ```tsx
 * import { CodeBlock } from "@netlify/sdk/ui/react/components";
 *
 * <CodeBlock content={`<p>Hello, world!</p>`} />
 * ```
 */
export declare const CodeBlock: ({ content, highlighting, language, }: CodeBlockProps) => React.JSX.Element;
//# sourceMappingURL=CodeBlock.d.ts.map