import { CodeBlockProps } from "./codeblock.js"; import { Highlighter } from "fumadocs-core/highlight"; import { UseShikiOptions } from "fumadocs-core/highlight/shiki/react"; import { HighlighterCore } from "shiki"; export interface DynamicCodeblockProps { highlighter: HighlighterCore | (() => HighlighterCore | PromiseLike); lang: string; code: string; /** * Extra props for the underlying `` component. * * Ignored if you defined your own `pre` component in `options.components`. */ codeblock?: CodeBlockProps; /** * Wrap in React `` and provide a fallback. * * @defaultValue true */ wrapInSuspense?: boolean; options: DistributiveOmit; } type DistributiveOmit = T extends unknown ? Omit : never; /** * Create a code block that highlights with your own highlighter. */ export declare function createDynamicCodeBlock({ highlighter }: { highlighter: Highlighter; }): (props: Omit) => import("react").JSX.Element; export declare function DynamicCodeBlock({ highlighter, options, wrapInSuspense, ...props }: DynamicCodeblockProps): import("react").JSX.Element; export {};