import { CodeBlockProps } from "./codeblock.js"; import { HighlightOptions, Highlighter } from "fumadocs-core/highlight"; export type ServerCodeBlockProps = HighlightOptions & { code: string; /** * Extra props for the underlying `` component. * * Ignored if you defined your own `pre` component in `components`. */ codeblock?: CodeBlockProps; }; export declare function ServerCodeBlock({ code, codeblock, ...options }: ServerCodeBlockProps): Promise | import("react").ReactElement> | (string | number | bigint | boolean | Iterable | import("react").ReactElement> | import("react").ReactPortal | null | undefined)>; /** * Create a server code block that highlights with your own highlighter. */ export declare function createServerCodeBlock({ highlighter }: { highlighter: Highlighter; }): ({ code, lang, codeblock }: Pick) => Promise | import("react").ReactElement> | (string | number | bigint | boolean | Iterable | import("react").ReactElement> | import("react").ReactPortal | null | undefined)>;